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

Model "slicing" #374

Open
molpopgen opened this issue Apr 4, 2024 · 0 comments
Open

Model "slicing" #374

molpopgen opened this issue Apr 4, 2024 · 0 comments
Labels
demes enhancement New feature or request

Comments

@molpopgen
Copy link
Owner

There are lots of reasons to want to "trim" a model down to a particular slice of time.

Proposal:

  • Two functions
  • One, "slice before", keeps all history before a given time
  • Another, "slice after", keeps all history after a given time.

The names are TBD.
Two calls lets you "slice to the middle" of an input model.

These functions should be consuming. Ideally, we'd take a current Graph and convert it back to an unresolved graph, edit, then resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demes enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant