diff --git a/aliby/tile/tiler.py b/aliby/tile/tiler.py index a5b5f4fb920602d2147653b941a71107c88a1544..82d57effb0593d964619733b8cff24f6c88f803c 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.