Skip to content

Commit c88e1ba

Browse files
authored
Merge pull request #1086 from itsb/main
support roi extraction of 2-channel data in GUI
2 parents be8830d + 1a1bd5b commit c88e1ba

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
@@ -444,6 +444,8 @@ def proc_ROI(self):
444444
self.p0.addItem(self.scatter[-1])
445445
if not os.path.isfile(self.parent.ops["reg_file"]):
446446
self.parent.ops["reg_file"] = os.path.join(self.parent.basename, "data.bin")
447+
if 'reg_file_chan2' in self.parent.ops and not os.path.isfile(self.parent.ops["reg_file_chan2"]):
448+
self.parent.ops["reg_file_chan2"] = os.path.join(self.parent.basename, "data_chan2.bin")
447449

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

0 commit comments

Comments
 (0)