- Fix bug wrt. supporting non-file images.

- Make layers optional in czi metadata.
- Delta_t for tif.
This commit is contained in:
Wim Pomp
2024-02-13 17:46:23 +01:00
parent 735523aba0
commit 8a66c570a6
4 changed files with 8 additions and 6 deletions

View File

@@ -962,11 +962,11 @@ class AbstractReader(Imread, metaclass=ABCMeta):
if isinstance(path, str):
path = Path(path)
self.path, self.series = self.split_path_series(path)
if isinstance(path, Path):
if isinstance(path, Path) and path.exists():
self.title = self.path.name
self.acquisitiondate = datetime.fromtimestamp(self.path.stat().st_mtime).strftime('%y-%m-%dT%H:%M:%S')
else: # ndarray
self.title = 'ndarray'
self.title = self.__class__.__name__
self.acquisitiondate = 'now'
self.reader = None