From 10bd99295583959149d3e51d81fa981669f654c1 Mon Sep 17 00:00:00 2001 From: samuelbray32 Date: Tue, 7 Jan 2025 09:31:12 -0800 Subject: [PATCH 1/3] fix missing pos interval map entry in pose estimation --- src/spyglass/position/v1/position_dlc_pose_estimation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/spyglass/position/v1/position_dlc_pose_estimation.py b/src/spyglass/position/v1/position_dlc_pose_estimation.py index 69a325a4f..04f7724f4 100644 --- a/src/spyglass/position/v1/position_dlc_pose_estimation.py +++ b/src/spyglass/position/v1/position_dlc_pose_estimation.py @@ -254,7 +254,6 @@ def _logged_make(self, key): "nwb_file_name": key["nwb_file_name"], "epoch": key["epoch"], }, - populate_missing=False, ) ) if interval_list_name: From c8f99628d2cf883035ef1ee194a83fef69968b20 Mon Sep 17 00:00:00 2001 From: samuelbray32 Date: Tue, 7 Jan 2025 09:35:41 -0800 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b85fda6b..6c86790ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## [0.5.5] (Unreleased) + +### Infrastructure + +### Pipelines + +- Position + - Allow population of missing `PositionIntervalMap` entries during population of `DLCPoseEstimation` #1208 + ## [0.5.4] (December 20, 2024) ### Infrastructure From ad9955f515502b2177064e9bc9237f38039ae938 Mon Sep 17 00:00:00 2001 From: samuelbray32 Date: Wed, 15 Jan 2025 11:48:50 -0800 Subject: [PATCH 3/3] strip extra key values in no_transaction_make --- src/spyglass/common/common_behav.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spyglass/common/common_behav.py b/src/spyglass/common/common_behav.py index 53f8b7dcd..0569d46e3 100644 --- a/src/spyglass/common/common_behav.py +++ b/src/spyglass/common/common_behav.py @@ -536,6 +536,9 @@ def _no_transaction_make(self, key): EPSILON = 0.51 # tolerated time diff in bounds across epoch/pos no_pop_msg = "CANNOT POPULATE PositionIntervalMap" + # Strip extra info from key if not passed via populate call + key = {k: v for k, v in key.items() if k in self.primary_key} + nwb_file_name = key["nwb_file_name"] pos_intervals = get_pos_interval_list_names(nwb_file_name) null_key = dict(key, position_interval_name="")