From 52292710f59edb18d317e10db7abe0d6b3427525 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk>
Date: Tue, 16 Aug 2022 17:02:03 +0100
Subject: [PATCH] docs(tiler): add typing; rename t to frame

---
 aliby/tile/tiler.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/aliby/tile/tiler.py b/aliby/tile/tiler.py
index 82d57eff..6305f51d 100644
--- a/aliby/tile/tiler.py
+++ b/aliby/tile/tiler.py
@@ -17,10 +17,10 @@ The image-processing is performed by traps/segment_traps.
 
 The experiment is stored as an array wuth a standard indexing order of (Time, Channels, Z-stack, Y, X).
 """
+import typing as t
 import warnings
 from functools import lru_cache
 from pathlib import PosixPath
-from typing import Union
 
 import dask.array as da
 import h5py
@@ -256,8 +256,8 @@ class Tiler(ProcessABC):
     @classmethod
     def from_hdf5(
         cls,
-        image: Union[Image, ImageLocal],
-        filepath: Union[str, PosixPath],
+        image: t.Union[Image, ImageLocal],
+        filepath: t.Union[str, PosixPath],
         parameters: TilerParameters = None,
     ):
         """
@@ -480,8 +480,8 @@ class Tiler(ProcessABC):
         """
         if time_dim is None:
             time_dim = 0
-        for t in range(self.image.shape[time_dim]):
-            self.run_tp(t)
+        for frame in range(self.image.shape[time_dim]):
+            self.run_tp(frame)
         return None
 
     # The next set of functions are necessary for the extraction object
-- 
GitLab