Skip to content

Commit 4fd9dfa

Browse files
bug with tic
1 parent 74dafad commit 4fd9dfa

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

jupyter/test_tiff_loader.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@
20612061
"name": "python",
20622062
"nbconvert_exporter": "python",
20632063
"pygments_lexer": "ipython3",
2064-
"version": "3.6.5"
2064+
"version": "3.7.3"
20652065
}
20662066
},
20672067
"nbformat": 4,

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="suite2p",
8-
version="1.0.2",
8+
version="1.0.3",
99
author="Marius Pachitariu and Carsen Stringer",
1010
author_email="[email protected]",
1111
description="Pipeline for calcium imaging",

suite2p/run_s2p.py

-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def run_s2p(ops={},db={}):
147147
ops0 = default_ops()
148148
# combine with user options
149149
ops = {**ops0, **ops}
150-
ops['t0'] = t0
151150
# copy tiff to a binary
152151
if len(ops['h5py']):
153152
ops1 = utils.h5py_to_binary(ops)
@@ -183,7 +182,6 @@ def run_s2p(ops={},db={}):
183182

184183
while ipl<len(ops1):
185184
print('>>>>>>>>>>>>>>>>>>>>> PLANE %d <<<<<<<<<<<<<<<<<<<<<<'%ipl)
186-
ops1[ipl]['t0'] = t0
187185
t1 = tic()
188186
if not flag_binreg:
189187
######### REGISTRATION #########

suite2p/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def tiff_to_binary(ops):
303303
''' converts tiff to *.bin file '''
304304
''' requires ops keys: nplanes, nchannels, data_path, look_one_level_down, reg_file '''
305305
''' assigns ops keys: tiffreader, first_tiffs, frames_per_folder, nframes, meanImg, meanImg_chan2'''
306-
t0=ops['t0']
306+
t0=tic()
307307
# copy ops to list where each element is ops for each plane
308308
ops1 = init_ops(ops)
309309
nplanes = ops1[0]['nplanes']
@@ -413,6 +413,7 @@ def split_multiops(ops1):
413413
def mesoscan_to_binary(ops):
414414
# copy ops to list where each element is ops for each plane
415415
# load json file with line start stops
416+
t0 = tic()
416417
if 'lines' not in ops:
417418
fpath = os.path.join(ops['data_path'][0], '*json')
418419
fs = glob.glob(fpath)

0 commit comments

Comments
 (0)