Skip to content
Snippets Groups Projects

First version of save function + unit tests

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -63,7 +63,7 @@ class DataSaver:
saver.save("image.tif",image)
"""
folder = os.path.dirname(path)
folder = os.path.dirname(path) or '.'
# Check if directory exists
if os.path.isdir(folder):
_, ext = os.path.splitext(path)
Loading