-
Notifications
You must be signed in to change notification settings - Fork 4
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
Require at least one Epoch in a Deme #25
Comments
There was some discussion, sorry, I forgot. popsim-consortium/demes-python#133 |
That will probably be a frequent occurrence, if these two examples are anything to go by. |
Thanks @grahamgower, very helpful. So, I think the earlier discussion was conflating the demes-python implementation and the definition of the specification. There's nothing stopping an implementation keeping start/end time attributes per deme (and I agree this is a useful thing), but it's not necessary from the specification perspective. The question is, is the slightly more concise yaml description worth the extra complexity? I'm leaning towards "no". |
100% agreed! Having to write |
@apragsdale, thoughts? |
I go back and forth on that issue. To me, the extra lines and indentation are noticeable, but I also think there's something to be said for having the YAML description be more explicit: it forces the user to think in terms of I'm more worried about human-readability and reducing implementation errors than the complexity of the code to parse the reduced representation. But I think we can have both by requiring epochs. |
OK, sounds like unanimity so far - @molpopgen, any dissent? |
No objection. Sorry, I'd missed this notification.
…On Fri, Dec 4, 2020, 8:11 AM Jerome Kelleher ***@***.***> wrote:
OK, sounds like unanimity so far - @molpopgen
<https://github.com/molpopgen>, any dissent?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ6OH755WMAL7N6OXQ6HWTSTECT7ANCNFSM4UNE6ETQ>
.
|
Currently we're implicitly defining a single epoch via some attributes of the Deme class. From a specification/parser writing perspective, it would be considerably simpler to just required the existence of at least one epoch. So, from the examples:
Is the first that much more readable than the second? Are we the models that people will be writing down to contain many demes with just one epoch?
The text was updated successfully, but these errors were encountered: