Open nicain opened 5 years ago
BTW the error flag for this file dumping to logs sees to be working just fine:
['ERROR::visual_behavior.translator.foraging2.extract::intervalsms record appears to be missing entries', 'WARNING::visual_behavior.translator.foraging2::loading images from foraging2 outputs is not implemented'] Attn @neuromusic @dougollerenshaw
@nicain: @jeromelecoq noticed that this off-by-one issue has persisted. Visual_behavior logs the following error:
This results from the encoder vector being one-longer than the time vector. The error is logged, but then the last value of the encoder vector is ignored and processing proceeeds: https://github.com/AllenInstitute/visual_behavior_analysis/blob/db657e71dba2eecace7645163d8a5ffa43821eef/visual_behavior/translator/foraging2/extract.py#L772
Should we turn off the error and just accept this as default behavior? At this point, it seems unlikely that Foraging2 is going to be changed to avoid this length mismatch in the first place.
Should we turn off the error and just accept this as default behavior? At this point, it seems unlikely that Foraging2 is going to be changed to avoid this length mismatch in the first place.
Agreed, this seems like our only option. When we work around this in downstream code, make sure to put a comment that references this issue in the code, to explain the off-by-one.
@corbennett just asked if this missing frame interval in the PKL is also missing from sync?
Need to apply the same fix as before to get running speed tat frame written