diff --git a/suite2p/gui/drawroi.py b/suite2p/gui/drawroi.py index 90e70783..34dfca8b 100644 --- a/suite2p/gui/drawroi.py +++ b/suite2p/gui/drawroi.py @@ -441,6 +441,8 @@ def proc_ROI(self): self.p0.addItem(self.scatter[-1]) if not os.path.isfile(self.parent.ops["reg_file"]): self.parent.ops["reg_file"] = os.path.join(self.parent.basename, "data.bin") + if 'reg_file_chan2' in self.parent.ops and not os.path.isfile(self.parent.ops["reg_file_chan2"]): + self.parent.ops["reg_file_chan2"] = os.path.join(self.parent.basename, "data_chan2.bin") F, Fneu, F_chan2, Fneu_chan2, spks, ops, stat = masks_and_traces( self.parent.ops, stat0, self.parent.stat)