Skip to content

Commit 1a1bd5b

Browse files
committed
support roi extraction of 2-channel data in GUI
1 parent 193e7f1 commit 1a1bd5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

suite2p/gui/drawroi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ def proc_ROI(self):
441441
self.p0.addItem(self.scatter[-1])
442442
if not os.path.isfile(self.parent.ops["reg_file"]):
443443
self.parent.ops["reg_file"] = os.path.join(self.parent.basename, "data.bin")
444+
if 'reg_file_chan2' in self.parent.ops and not os.path.isfile(self.parent.ops["reg_file_chan2"]):
445+
self.parent.ops["reg_file_chan2"] = os.path.join(self.parent.basename, "data_chan2.bin")
444446

445447
F, Fneu, F_chan2, Fneu_chan2, spks, ops, stat = masks_and_traces(
446448
self.parent.ops, stat0, self.parent.stat)

0 commit comments

Comments
 (0)