Skip to content
Snippets Groups Projects

added txrm_loader_wo_virtual_stack

Merged s184058 requested to merge load_txrm_files into main
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
+ 6
2
@@ -15,7 +15,7 @@ class DataLoader:
Args:
virtual_stack (bool, optional): Specifies whether to use virtual stack
when loading TIFF files. Default is False.
when loading files. Default is False.
Attributes:
virtual_stack (bool): Specifies whether virtual stack is enabled.
@@ -24,6 +24,7 @@ class DataLoader:
load_tiff(path): Load a TIFF file from the specified path.
load_h5(path): Load an HDF5 file from the specified path.
load_tiff_stack(path): Load a stack of TIFF files from the specified path.
load_txrm(path): Load a TXRM/TXM/XRM file from the specified path
load(path): Load a file or directory based on the given path.
Raises:
@@ -40,7 +41,7 @@ class DataLoader:
Args:
path (str): The path to the file or directory.
virtual_stack (bool, optional): Specifies whether to use virtual
stack when loading TIFF and HDF5 files. Default is False.
stack when loading files. Default is False.
dataset_name (str, optional): Specifies the name of the dataset to be loaded
in case multiple dataset exist within the same file. Default is None (only for HDF5 files)
return_metadata (bool, optional): Specifies whether to return metadata or not. Default is False (only for HDF5 files)
@@ -230,6 +231,9 @@ class DataLoader:
log.info("Loaded shape: %s", vol.shape)
log.info("Using %s of memory", sizeof(sys.getsizeof(vol)))
if self.virtual_stack:
raise NotImplementedError("Using virtual stack for TXRM files is not implemented yet")
if self.return_metadata:
return vol, metadata
else:
Loading