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

Correctly parse all valid test cases #9

Merged
merged 13 commits into from
Mar 9, 2023

Conversation

IsabelMarleen
Copy link
Collaborator

Except for these four valid test cases ("toplevel_defaults_deme_01.yaml", "successors_predecessors_01.yaml", "deme_end_time_01.yaml", "unicode_deme_name_04.yaml"), all valid test cases in the deme spec can now be parsed correctly and pass all tests.

The files that cannot be parsed correctly are for reasons outside the validate_demes() function. The first three don't pass because they have a deme named "y" and that is interpreted as TRUE in yaml 1.1 which is what the yaml reader is based on. For the last one it is the pre-parsed file that causes issues. It cannot be read by yaml::read_yaml without causing an error unless fileEncoding = UTF-16 is specified.

Copy link
Member

@grahamgower grahamgower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is awesome! I'll have a think about what to do with the tests that you've excluded, but this all looks good to me.

@bodkan
Copy link
Member

bodkan commented Mar 8, 2023

Incredible work, @IsabelMarleen! What an epic accomplishment for just the first month of your Master's thesis. 👏

@IsabelMarleen IsabelMarleen merged commit fb7be0f into RacimoLab:main Mar 9, 2023
@IsabelMarleen IsabelMarleen deleted the dev branch March 9, 2023 13:58
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

Successfully merging this pull request may close these issues.

3 participants