From 9c3147f68752d3671d5692dd5f02ce686998892a Mon Sep 17 00:00:00 2001 From: Kipp Freud Date: Thu, 30 May 2024 17:31:04 +0100 Subject: [PATCH] should close issue #297. Currently append_NWB_LFP function will not work with TsdFrames; this fixes. --- pynapple/io/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynapple/io/misc.py b/pynapple/io/misc.py index 36c9614f..a3bab79e 100644 --- a/pynapple/io/misc.py +++ b/pynapple/io/misc.py @@ -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]