From 5094c5acd402f94551d05b6ae3906e7f1bc3965b Mon Sep 17 00:00:00 2001 From: gbradham Date: Tue, 3 Nov 2026 14:24:53 -0600 Subject: [PATCH] fix(review): open a folder of Batch Pose videos as a cohort A folder of videos run through Batch Pose holds no recording and no ethogram, so Open recording folder reported nothing to open and Open folder as cohort found no sessions. A video beside its DLC pose CSV is now a cohort session, like a pup-tracked video, unless an ethogram, pup session or the recording that filmed it already shows it. Open recording folder on a folder that is not one recording opens every session in it. --- CHANGELOG.md | 6 +++ src/glider/analysis/cohort.py | 42 +++++++++++++++++-- src/glider/gui/behavior/analysis_window.py | 14 ++++++- tests/unit/analysis/test_cohort.py | 31 ++++++++++++++ .../unit/gui/behavior/test_analysis_window.py | 11 +++++ 5 files changed, 99 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2377ac3c..951b98ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -373,6 +373,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- **A folder of Batch Pose videos opens in Session Review.** Videos tracked by + Batch Pose (a video beside its `DLC_` CSV) are now sessions of a cohort, as + pup-tracked videos already were, and Open recording folder on a folder that + is no single recording opens every session in it instead of reporting "no + GLIDER recording". A video that already has a session (its ethogram, its pup + tracking, or the recording that filmed it) is not listed twice. - **Batch Pose follows the animal, not an object the model also detects.** A rat model over a novel-object arena also scored each dish as a small rat, and the single-animal path kept whichever detection was most confident. The track diff --git a/src/glider/analysis/cohort.py b/src/glider/analysis/cohort.py index 0c920930..690c7503 100644 --- a/src/glider/analysis/cohort.py +++ b/src/glider/analysis/cohort.py @@ -3,7 +3,8 @@ Session Review opens a folder as a cohort. A cohort mixes three kinds of session: apply-run ethograms (``/