From 0b68130514080e6868ce085bf431a59e40d43105 Mon Sep 17 00:00:00 2001
From: pswain <peter.swain@ed.ac.uk>
Date: Thu, 29 Jun 2023 17:03:34 +0100
Subject: [PATCH] docs

---
 src/agora/io/metadata.py | 3 +++
 src/aliby/tile/tiler.py  | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/agora/io/metadata.py b/src/agora/io/metadata.py
index 8d94986f..56f70b54 100644
--- a/src/agora/io/metadata.py
+++ b/src/agora/io/metadata.py
@@ -189,10 +189,13 @@ def parse_swainlab_metadata(filedir: t.Union[str, Path]):
     filedir = Path(filedir)
     filepath = find_file(filedir, "*.log")
     if filepath:
+        # new log files
         raw_parse = parse_from_swainlab_grammar(filepath)
         minimal_meta = get_meta_swainlab(raw_parse)
     else:
+        # old log files
         if filedir.is_file() or str(filedir).endswith(".zarr"):
+            # log file is in parent directory
             filedir = filedir.parent
         legacy_parse = parse_logfiles(filedir)
         minimal_meta = (
diff --git a/src/aliby/tile/tiler.py b/src/aliby/tile/tiler.py
index 3ea9817f..27c1e814 100644
--- a/src/aliby/tile/tiler.py
+++ b/src/aliby/tile/tiler.py
@@ -367,9 +367,9 @@ class Tiler(StepABC):
         full: an array of images
         """
         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")
-
         return full
 
     @property
-- 
GitLab