Repository navigation
Conversation
There was a problem hiding this comment.
Good fix! Minor suggestion: shall we add a tiny regression test that locks the correct behavior?
Just for reference:
Seems this bug has been there since the introduction of BUCTD (see #2952). It only affects users who ran analyze_videos from the Python API with a multi-animal CTD model and ctd_tracking turned on, then re-ran it with overwrite=False on a batch where some videos already had a _full.pickle. Is that correct, @Ayskin?
|
It indeed only affects users running
If |
|
Closing as this fix is actually already included in the merged PR #3488. |
The
ctd_trackingbranch ofanalyze_videosnow reads the correct listctd_predictionsinstead of the wrong listpredictions.Previous silent misread as both lists are the same but would fail if
use_shelve=Trueas the listpredictionsis empty.So currently
ctd_predictionsactually rebuilds the same data as inpredictionsfrom the pickle file (potential refactoring related to #3553).