Skip to content
Snippets Groups Projects
Commit 0b681305 authored by pswain's avatar pswain
Browse files

docs

parent 5d8bfd03
No related branches found
No related tags found
No related merge requests found
...@@ -189,10 +189,13 @@ def parse_swainlab_metadata(filedir: t.Union[str, Path]): ...@@ -189,10 +189,13 @@ def parse_swainlab_metadata(filedir: t.Union[str, Path]):
filedir = Path(filedir) filedir = Path(filedir)
filepath = find_file(filedir, "*.log") filepath = find_file(filedir, "*.log")
if filepath: if filepath:
# new log files
raw_parse = parse_from_swainlab_grammar(filepath) raw_parse = parse_from_swainlab_grammar(filepath)
minimal_meta = get_meta_swainlab(raw_parse) minimal_meta = get_meta_swainlab(raw_parse)
else: else:
# old log files
if filedir.is_file() or str(filedir).endswith(".zarr"): if filedir.is_file() or str(filedir).endswith(".zarr"):
# log file is in parent directory
filedir = filedir.parent filedir = filedir.parent
legacy_parse = parse_logfiles(filedir) legacy_parse = parse_logfiles(filedir)
minimal_meta = ( minimal_meta = (
......
...@@ -367,9 +367,9 @@ class Tiler(StepABC): ...@@ -367,9 +367,9 @@ class Tiler(StepABC):
full: an array of images full: an array of images
""" """
full = self.image[t, c] full = self.image[t, c]
if hasattr(full, "compute"): # If using dask fetch images here if hasattr(full, "compute"):
# if using dask fetch images
full = full.compute(scheduler="synchronous") full = full.compute(scheduler="synchronous")
return full return full
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment