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

feat: treat branch_attrs as optional when parsing Auspice JSON #1465

Merged
merged 2 commits into from
May 31, 2024

Conversation

ivan-aksamentov
Copy link
Member

@ivan-aksamentov ivan-aksamentov commented May 31, 2024

Slack thread: https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1717118894510309?thread_ts=1717010296.943269&cid=C01LCTT7JNN

Followup of: #1455

Let's set the default value for field .branch_attrs of tree nodes when the field is not present during parsing.

It is not required in schema:
https://github.com/nextstrain/augur/blob/f0900bce1a51c4c82b81486b2bcc709db6c08239/augur/data/schema-export-v2.json#L133

Example tree: tree.json.txt (downloaded 2024-05-31 from https://nextstrain.org/groups/blab/ncov/early-outbreak/root-AB)

Let's set the default value for field `.branch_attrs` of tree nodes when the field is not present during parsing.

It is not required in schema:
https://github.com/nextstrain/augur/blob/f0900bce1a51c4c82b81486b2bcc709db6c08239/augur/data/schema-export-v2.json#L133

Example tree: [tree.json.txt](https://github.com/user-attachments/files/15507452/tree.json.txt)
Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextclade ✅ Ready (Inspect) Visit Preview May 31, 2024 6:09pm

@ivan-aksamentov ivan-aksamentov merged commit 77cd985 into master May 31, 2024
3 of 4 checks passed
@ivan-aksamentov ivan-aksamentov deleted the feat/branch-attrs-optional branch May 31, 2024 18:00
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.

1 participant