Repository navigation
feat(review): measure heatmap and zones from chosen keypoints - #242
Merged
Merged
Conversation
Right-click the Heatmap or Zones toggle to pick the keypoints session review measures position from: the centroid (default), one keypoint, or several. With several, the heatmap bins their mean (e.g. the head from nose + ears) and a zone holds the animal when any chosen keypoint is inside it, so a nose reaching into a novel object's zone counts. The choice is saved per keypoint set, applies to the zone table, heatmap export and cohort zone columns, and is named on the zone table title.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Session review measured the heatmap and time-in-zone from the centroid only. For novel-object investigation that is the wrong point: the body sits beside the object while the head investigates it.
ZONES (2) · nose + l_ear + r_ear.spatial.position_track/tracking_frame/zone_occupancy/occupancy_gridnow accept a list of keypoint names forpoint. String values behave as before.Test plan
test_spatial.py(mean position, dropped keypoints, any-inside zone rule, head-out/body-in, occupancy, heatmap)test_analysis_window.py(default, menu, toggling, persistence, wiring to zones and heatmap)tests/unit/analysis,tests/unit/gui/review,tests/unit/gui/behavior: 2382 passed, 6 skipped