Closed hyanwong closed 3 months ago
By default draw(..., sample_order=[])
which is a mutable object and wasn't behaving as intended. This is changed to draw(..., sample_order=None)
and then later updated to be an empty list. Closing as this should be solved now, but let me know if it's still causing trouble.
Ah yes! The "don't use lists as defaults" issue. I've been bitten by that too! Thanks for fixing it.
When I repeatedly run the visualiser in a jupyterlab cell, but change the input tree sequence, I often get an error about "node not a sample". It appears as if some global variable is being cached somehow.
This triggers the bug for me: