From 2e988b4c6a512132ae1d708bce170f209f0c1b02 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 16:56:52 +0100 Subject: [PATCH] clean(tiler): remove unused code --- aliby/tile/tiler.py | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/aliby/tile/tiler.py b/aliby/tile/tiler.py index a5b5f4fb..82d57eff 100644 --- a/aliby/tile/tiler.py +++ b/aliby/tile/tiler.py @@ -47,23 +47,6 @@ class Trap: self.half_size = size // 2 self.max_size = max_size - def padding_required(self, tp): - """ - Check if we need to pad the trap image for this time point. - - Parameters - ---------- - tp: integer - Index for a time point - """ - try: - assert all(self.at_time(tp) - self.half_size >= 0) - assert all(self.at_time(tp) + self.half_size <= self.max_size) - # return False - except AssertionError: - return True - return False - def at_time(self, tp): """ Return trap centre at time tp by applying drifts @@ -165,17 +148,6 @@ class TrapLocations: """ return len(self.traps), len(self.drifts) - def padding_required(self, tp): - """ - Check if any traps need padding - - Parameters - ---------- - tp: integer - An index for a time point - """ - return any([trap.padding_required(tp) for trap in self.traps]) - def to_dict(self, tp): """ Export inital locations, tile_size, max_size, and drifts @@ -559,12 +531,8 @@ class Tiler(ProcessABC): if item in ch: return i - def get_position_annotation(self): - # TODO required for matlab support - return None - @staticmethod - def ifoob_pad(full, slices): # TODO Remove when inheriting TilerABC + def ifoob_pad(full, slices): """ Returns the slices padded if it is out of bounds. -- GitLab