Skip to content

Commit

Permalink
move print outside if else
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhulyalkar committed Aug 16, 2023
1 parent 755433c commit 9d0c708
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions suite2p/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,14 @@ def get_nd2_list(ops):
- if ops['look_one_level_down'], then obtain all nd2's in all folders + one level down
"""
froot = ops["data_path"]
fsall = []
if "tiff_list" in ops:
fsall = []
for tif in ops["tiff_list"]:
fsall.append(os.path.join(froot[0], tif))
ops["first_tiffs"] = np.zeros((len(fsall),), dtype="bool")
ops["first_tiffs"][0] = True
print("** Found %d nd2 files - converting to binary **" % (len(fsall)))
else:
fold_list = ops["data_path"]
fsall = []
nfs = 0
first_tiffs = []
for k, fld in enumerate(fold_list):
Expand All @@ -193,7 +191,7 @@ def get_nd2_list(ops):
raise Exception("no nd2s")
else:
ops["first_tiffs"] = np.array(first_tiffs).astype("bool")
print("** Found %d nd2 files - converting to binary **" % (len(fsall)))
print("** Found %d nd2 files - converting to binary **" % (len(fsall)))
return fsall, ops


Expand Down

0 comments on commit 9d0c708

Please sign in to comment.