Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify multiple pulses with common dest deme into a single pulse #390

Open
grahamgower opened this issue Dec 1, 2021 · 1 comment
Open

Comments

@grahamgower
Copy link
Member

Now that we support multiple sources in single pulse event, we should simplify to this when possible.

@grahamgower grahamgower changed the title simplify multiple pulses into a deme with the same source into a single pulse simplify multiple pulses with common dest deme into a single pulse Dec 1, 2021
@apragsdale
Copy link
Member

Yes - there will be some corner cases that we'll want to be careful about, but this should be straight forward.

By corner cases, I mean the following should not be simplified:

pulses:
- time: 1
  sources: ["a"]
  proportions: [0.1]
  dest: "b"
- time: 1
  sources: ["b"]
  proportions: [0.2]
  dest: "d"
- time: 1
  sources: ["c"]
  proportions: [0.3]
  dest: "b"

but other scenarios can be, e.g.:

pulses:
- time: 1
  sources: ["a"]
  proportions: [0.1]
  dest: "b"
- time: 1
  sources: ["a"]
  proportions: [0.2]
  dest: "d"
- time: 1
  sources: ["c"]
  proportions: [0.3]
  dest: "b"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants