Skip to content

Commit 9aaa549

Browse files
committed
Merge branch 'nd2support' of https://github.com/tdincer/suite2p into nd2support
2 parents 23d10f7 + cb317bd commit 9aaa549

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

suite2p/extraction/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def extract_traces_from_masks(ops, cell_masks, neuropil_masks):
132132
if 'reg_file_chan2' in ops:
133133
with BinaryRWFile(Ly=ops['Ly'], Lx=ops['Lx'],
134134
filename=ops['reg_file_chan2']) as f:
135-
F_chan2, Fneu_chan2 = extract_traces(cell_masks, neuropil_masks, batch_size=batch_size)
135+
F_chan2, Fneu_chan2 = extract_traces(f, cell_masks, neuropil_masks, batch_size=batch_size)
136136
return F, Fneu, F_chan2, Fneu_chan2
137137

138138
def extraction_wrapper(stat, f_reg, f_reg_chan2=None, cell_masks=None, neuropil_masks=None, ops=default_ops()):

suite2p/gui/rungui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def revert_default_ops(self):
481481
def save_text(self):
482482
for k in range(len(self.editlist)):
483483
key = self.keylist[k]
484-
self.ops[key] = self.editlist[k].get_text(self.intkeys, self.boolkeys)
484+
self.ops[key] = self.editlist[k].get_text(self.intkeys, self.boolkeys, self.stringkeys)
485485

486486
def load_ops(self, name=None):
487487
print('loading ops')

suite2p/io/nwb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,7 @@ def save_nwb(save_folder):
516516
# BACKGROUNDS
517517
# (meanImg, Vcorr and max_proj are REQUIRED)
518518
bg_strs = ["meanImg", "Vcorr", "max_proj", "meanImg_chan2"]
519-
nplanes = ops["nplanes"]
520-
for iplane in range(nplanes):
519+
for iplane, ops in enumerate(ops1):
521520
images = Images("Backgrounds_%d" % iplane)
522521
for bstr in bg_strs:
523522
if bstr in ops:

0 commit comments

Comments
 (0)