Skip to content

Commit

Permalink
Restore peak_waveform_index in units
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Sep 26, 2024
1 parent 610f2f9 commit 2786002
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/npc_sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,7 @@ def units(self) -> pynwb.misc.Units:
f"{group_query} & channel == {row['peak_channel']}"
).index.item()
),
# TODO incorrect for some units: add back when annotations are correct
# peak_waveform_index=row["electrodes"].index(peak_electrode),
peak_waveform_index=row["electrodes"].index(peak_electrode),
obs_intervals=self.get_obs_intervals(row["electrode_group_name"]),
)
if "waveform_mean" in units:
Expand Down

0 comments on commit 2786002

Please sign in to comment.