Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
schienstockd committed Dec 20, 2022
1 parent 7e2f6b0 commit b731f2f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions inst/py/segmentation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def predict(self, im_dat, nscales = 1):

# find shapes of identified labels
if self.find_contours is True:
self.logfile_utils.log("Find contours")
self.logfile_utils.log('Find contours')

label_contours = measure_utils.countours_2D_from_zarr(
labels, im_dat, self.dim_utils, self.logfile_utils,
Expand All @@ -185,15 +185,14 @@ def predict(self, im_dat, nscales = 1):

# save contours
label_contours.to_csv(
os.path.join(self.task_dir, "label_contours.csv"),
os.path.join(self.task_dir, 'label_contours.csv'),
index = False)

# generate multiscales for labels
# TODO is there a more elegant way to do this .. ?
# if nscales > 1:
if False is True:
if nscales > 1:
for i, x in self.labels_paths.items():
multiscales_file_path = x + ".multiscales"
multiscales_file_path = x + '.multiscales'

zarr_utils.create_multiscales(
labels[i], multiscales_file_path,
Expand Down

0 comments on commit b731f2f

Please sign in to comment.