-
Notifications
You must be signed in to change notification settings - Fork 2
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
yaml library parses demes named "y" as booleans with the value TRUE #10
Comments
I believe that tags or strings can be use to override this behavior, and this should be noted in the documentation. |
Minor correction,
Do you mean specifying a custom handling function in the yaml parser? Part of the issue is that the values are not quoted, so in the yaml file it just says |
Ah, yep, thanks. I removed it from the list.
No, I think Reed means that one can write
It would be nice if we could make this work by somehow telling the yaml parser that the |
Given that
|
Yes I think you're right that we should fix the test files. It's a shame that YAML 1.2 parsers are not widespread, given that it's now 14 years old. |
Alright, then I'll implement a custom handling function for Thank you both for your help! |
Oh, you shouldn't need to have a custom handler. When the source file has the |
These test files have now been fixed in the spec repository. Updating to use the latest spec test files here should close this issue. |
I just updated to the latest spec test files in Pull Request #13 and will close this issue now. |
Four valid test cases from the demes-spec repo (listed below) cannot be parsed because they contain a deme with the name "y". The yaml library only supports yaml v1.1 (not v1.2), and thus interprets these deme names as being a boolean type with the value TRUE. See #9.
The text was updated successfully, but these errors were encountered: