Skip to content

Commit

Permalink
Fix extend with nwb container #124
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Sep 24, 2024
1 parent 63e5cd8 commit be25aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/npc_sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def _ecephys(
) -> tuple[pynwb.core.NWBDataInterface | pynwb.core.DynamicTable, ...]:
modules: list[pynwb.core.NWBDataInterface | pynwb.core.DynamicTable] = []
if self.is_ephys and self._subsampled_LFP is not None:
modules.extend(self._subsampled_LFP)
modules.append(self._subsampled_LFP)
return tuple(modules)

@property
Expand Down Expand Up @@ -1720,7 +1720,7 @@ def _subsampled_LFP(self) -> pynwb.ecephys.LFP | None:
probe_subsampled_LFP = probe_subsampled_LFP_result[0]
electrode_table_region = hdmf.common.DynamicTableRegion(
name="electrodes", # pynwb requires this not be renamed
description=f"channels with subsampled LFP data on {probe.name}. Spatially downsampled resulting in f{len(probe_subsampled_LFP.channel_ids)} channels",
description=f"channels with subsampled LFP data on {probe.name}. Spatially downsampled resulting in {len(probe_subsampled_LFP.channel_ids)} channels",
data=probe_subsampled_LFP.channel_ids, # channel indices
table=self.electrodes,
)
Expand Down

0 comments on commit be25aab

Please sign in to comment.