Skip to content

Commit

Permalink
Merge pull request #118 from ttngu207/dev_write_multiple_bigtiff
Browse files Browse the repository at this point in the history
fix: incorrect dimension ordering for single-plane caimain loading
  • Loading branch information
kushalbakshi authored Jul 24, 2024
2 parents ebb6adc + 0b3b306 commit 57a8158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion element_interface/caiman_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _get_image(self, img_type):
img_ = (
pln_cm.motion_correction[img_type].transpose()
if self.is3D
else pln_cm.motion_correction[img_type][...][np.newaxis, ...]
else pln_cm.motion_correction[img_type][...][..., np.newaxis]
)
else:
img_ = np.dstack(
Expand Down
3 changes: 3 additions & 0 deletions element_interface/prairie_view_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def write_single_bigtiff(
if len(output_tiff_list) and not overwrite:
return output_tiff_list[0] if gb_per_file is None else output_tiff_list

# delete old tif files if overwrite is True
[f.unlink() for f in output_tiff_list]

output_tiff_list = []
if self.meta["is_multipage"]:
if gb_per_file is not None:
Expand Down

0 comments on commit 57a8158

Please sign in to comment.