Description
When changing between two datasets via the sidebar dropdown UI, each with a tip frequencies sidecar, we saw someone get a warning banner indicating a failure to normalise frequencies and the sidebar option is not available. The relevant code for the sidebar is:
auspice/src/components/controls/frequency-normalization.js
Lines 22 to 32 in de94b72
and checkIfNormalizableFromRawData
seems to always return true
(!)
auspice/src/util/processFrequencies.js
Lines 62 to 63 in de94b72
implying a race condition around this.props.frequencies.loaded && this.props.tree.loaded
.
Reloading the page works as expected.
I don't have any reproducible datasets (have asked for them), and note that changing https://nextstrain.org/seasonal-flu/h3n2/ha/3y to 2y (via sidebar) works as expected. Perhaps it's dataset specific (hard to understand after skimming the relevant code) or using an old version of auspice (normalisation checking was removed in 7b9495b in 2001)