diff --git a/CHANGELOG.md b/CHANGELOG.md index 05ce927ef..7523435fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ - Ensure merge tables are declared during file insertion #1205 - Update URL for DANDI Docs #1210 +### Pipelines + +- Position + - Allow population of missing `PositionIntervalMap` entries during population of `DLCPoseEstimation` #1208 + ## [0.5.4] (December 20, 2024) ### Infrastructure 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="") 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: