Skip to content

Commit

Permalink
Merge pull request #298 from kippfreud/append_NWB_LFP-listcasting-fix
Browse files Browse the repository at this point in the history
Currently append_NWB_LFP function will not work with TsdFrames; this fixes.
  • Loading branch information
gviejo authored Jun 3, 2024
2 parents 3190fb1 + 9c3147f commit 399d52c
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 399d52c

Please sign in to comment.