Skip to content

Commit

Permalink
should close issue #297. Currently append_NWB_LFP function will not w…
Browse files Browse the repository at this point in the history
…ork with TsdFrames; this fixes.
  • Loading branch information
kippfreud committed May 30, 2024
1 parent 3190fb1 commit 9c3147f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynapple/io/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def append_NWB_LFP(path, lfp, channel=None):
raise RuntimeError("Can't find nwb file in {}".format(path))

if isinstance(lfp, nap.TsdFrame):
channels = lfp.columns.values
channels = list(lfp.columns.values)
elif isinstance(lfp, nap.Tsd):
if isinstance(channel, int):
channels = [channel]
Expand Down

0 comments on commit 9c3147f

Please sign in to comment.