From a8187318cae09dbf9cda0ef17cc41158a7a02ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk> Date: Thu, 3 Feb 2022 10:58:31 +0000 Subject: [PATCH] bugfix tiler rewriting trap_info --- aliby/tile/tiler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aliby/tile/tiler.py b/aliby/tile/tiler.py index f95a99ae..ee46162c 100644 --- a/aliby/tile/tiler.py +++ b/aliby/tile/tiler.py @@ -106,10 +106,10 @@ class TrapLocations: def to_dict(self, tp): res = dict() - # if tp == 0: - res["trap_locations"] = self.initial_location - res["attrs/tile_size"] = self.tile_size - res["attrs/max_size"] = self.max_size + if tp == 0: + res["trap_locations"] = self.initial_location + res["attrs/tile_size"] = self.tile_size + res["attrs/max_size"] = self.max_size res["drifts"] = np.expand_dims(self.drifts[tp], axis=0) # res["processed_timepoints"] = tp return res -- GitLab