Skip to content
Snippets Groups Projects
Commit 2e988b4c authored by Alán Muñoz's avatar Alán Muñoz
Browse files

clean(tiler): remove unused code

parent 0cb25380
No related branches found
No related tags found
No related merge requests found
...@@ -47,23 +47,6 @@ class Trap: ...@@ -47,23 +47,6 @@ class Trap:
self.half_size = size // 2 self.half_size = size // 2
self.max_size = max_size 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): def at_time(self, tp):
""" """
Return trap centre at time tp by applying drifts Return trap centre at time tp by applying drifts
...@@ -165,17 +148,6 @@ class TrapLocations: ...@@ -165,17 +148,6 @@ class TrapLocations:
""" """
return len(self.traps), len(self.drifts) 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): def to_dict(self, tp):
""" """
Export inital locations, tile_size, max_size, and drifts Export inital locations, tile_size, max_size, and drifts
...@@ -559,12 +531,8 @@ class Tiler(ProcessABC): ...@@ -559,12 +531,8 @@ class Tiler(ProcessABC):
if item in ch: if item in ch:
return i return i
def get_position_annotation(self):
# TODO required for matlab support
return None
@staticmethod @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. Returns the slices padded if it is out of bounds.
......
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