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

simplitfy tilerParameters

parent b9ad68d0
No related branches found
No related tags found
No related merge requests found
...@@ -135,21 +135,8 @@ class TrapLocations: ...@@ -135,21 +135,8 @@ class TrapLocations:
class TilerParameters(ParametersABC): class TilerParameters(ParametersABC):
def __init__(
self, tile_size: int, ref_channel: str, ref_z: int, template_name: str = None
):
self.tile_size = tile_size
self.ref_channel = ref_channel
self.ref_z = ref_z
self.template_name = template_name
@classmethod _defaults = {"tile_size": 117, "ref_channel": "Brightfield", "ref_z": 0}
def from_template(cls, template_name: str, ref_channel: str, ref_z: int):
return cls(template.shape[0], ref_channel, ref_z, template_path=template_name)
@classmethod
def default(cls):
return cls(117, "Brightfield", 0)
class Tiler(ProcessABC): class Tiler(ProcessABC):
......
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