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

Cast all branch labels to strings #1157

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

jameshadfield
Copy link
Member

This addresses a long-standing bug in auspice and closes #888. Casting branch labels to strings doesn't change how the labels render, but does allow restoration of zoom state via URL queries which always use strings.

Testing

Compare the behavior of this PR vs nextstrain.org for the flu/seasonal/h1n1pdm/ha/12y dataset which has numeric branch label values.

Additionally to this, as per #888 (comment), the augur schema should be updated to indicate that string label values should be used.

This addresses a long-standing bug in auspice and closes #888. Casting branch labels to strings doesn't change how the labels render, but does allow restoration of zoom state via URL queries which always use strings.
@jameshadfield jameshadfield temporarily deployed to auspice-cast-branch-lab-7oktjb June 5, 2020 01:24 Inactive
@jameshadfield jameshadfield merged commit c3b34d5 into master Jun 9, 2020
@jameshadfield jameshadfield deleted the cast-branch-labels branch June 9, 2020 04:12
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.

Non-string tree labels do not work when loading from URL queries
1 participant