Skip to content

Commit afca634

Browse files
committed
Updated TwophotonSeries initialization for save_nwb in io
1 parent c71fd6c commit afca634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

suite2p/io/nwb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ def save_nwb(save_folder):
359359
grid_spacing=([2.0, 2.0, 30.0] if multiplane else [2.0, 2.0]),
360360
grid_spacing_unit="microns",
361361
)
362-
363362
# link to external data
363+
external_data = ops["filelist"] if "filelist" in ops else [""]
364364
image_series = TwoPhotonSeries(
365365
name="TwoPhotonSeries",
366366
dimension=[ops["Ly"], ops["Lx"]],
367-
external_file=(ops["filelist"] if "filelist" in ops else [""]),
367+
external_file=external_data,
368368
imaging_plane=imaging_plane,
369-
starting_frame=[0],
369+
starting_frame=[0 for i in range(len(external_data))],
370370
format="external",
371371
starting_time=0.0,
372372
rate=ops["fs"] * ops["nplanes"],

0 commit comments

Comments
 (0)