Skip to content

Commit

Permalink
Update binary.py write_tiff to add all frames to a single series
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Aug 9, 2023
1 parent 6e357de commit f174b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite2p/io/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def write_tiff(self, fname, range_dict={}):
print('Frame Range: {}, y_range: {}, x_range{}'.format(frame_range, y_range, x_range))
for i in range(frame_range[0], frame_range[1]):
curr_frame = np.floor(self.file[i, y_range[0]:y_range[1], x_range[0]:x_range[1]]).astype(np.int16)
f.write(curr_frame)
f.write(curr_frame, contiguous=True)
print('Tiff has been saved to {}'.format(fname))

def from_slice(s: slice) -> Optional[np.ndarray]:
Expand Down

0 comments on commit f174b60

Please sign in to comment.