Skip to content

Commit

Permalink
strip extra key values in no_transaction_make
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Jan 15, 2025
1 parent c8f9962 commit ad9955f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spyglass/common/common_behav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="")
Expand Down

0 comments on commit ad9955f

Please sign in to comment.