From 4b1b6cc7844f8bf453ae0ba3b618106163fa9bcf Mon Sep 17 00:00:00 2001 From: jingpengw Date: Thu, 31 Aug 2023 13:25:37 -0400 Subject: [PATCH] production code for sample 3 big mergers splitting --- chunkflow/chunk/image/base.py | 1 - chunkflow/volume.py | 4 ++++ distributed/restapi/server.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chunkflow/chunk/image/base.py b/chunkflow/chunk/image/base.py index b49060a..d32065b 100644 --- a/chunkflow/chunk/image/base.py +++ b/chunkflow/chunk/image/base.py @@ -90,7 +90,6 @@ def _hist_to_lookup_table(self, lookup_table = lookup_table.astype( np.uint8 ) return lookup_table - def normalize_contrast(self, lower_clip_fraction: float = 0.01, upper_clip_fraction: float = 0.01, diff --git a/chunkflow/volume.py b/chunkflow/volume.py index 3938952..259c778 100644 --- a/chunkflow/volume.py +++ b/chunkflow/volume.py @@ -85,6 +85,10 @@ def bounding_box(self): bbox = bbox.inverse_order() return bbox + @cached_property + def bbox(self): + return self.bounding_box + @cached_property def start(self) -> Cartesian: return self.bounding_box.start diff --git a/distributed/restapi/server.py b/distributed/restapi/server.py index 75773f3..4981d2c 100755 --- a/distributed/restapi/server.py +++ b/distributed/restapi/server.py @@ -11,7 +11,7 @@ app = FastAPI() -maxid = 86002891 +maxid = 115015938 @app.get("/objids/{id_num}") def get_base_id(id_num: int):