Skip to content

Commit

Permalink
Tif File Save Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtle00 committed Jul 25, 2024
1 parent b760c2d commit 7ff5090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymapmanager/interface2/stackWidgets/stackWidget2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,13 +1052,13 @@ def emitRedoEvent(self):
def save(self):
""" Stack Widget saves changes to its Zarr file
"""
# self.getStack().save()

path = self.getStack().getPath()
ext = os.path.splitext(path)[1]
# logger.info(f"ext {ext}")
if ext == ".mmap":
self.getStack().save()
elif ext == "tif":
elif ext == ".tif":
self.fileSaveAs()
else:
logger.info("Extension not understood, nothing is saved")
Expand Down

0 comments on commit 7ff5090

Please sign in to comment.