Skip to content
Snippets Groups Projects
Commit 49581d11 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Temporary error-handling for debug...

parent 2d8bf47f
No related branches found
No related tags found
3 merge requests!37Release 2024.04.19,!34Revert "Temporary error-handling for debug...",!15Changes supporting AutoMic integration
...@@ -290,11 +290,16 @@ class RoiSet(object): ...@@ -290,11 +290,16 @@ class RoiSet(object):
# assign labels to object map: # assign labels to object map:
for i, roi in enumerate(self): for i, roi in enumerate(self):
oc = np.unique( try:
mask_largest_object( oc = np.unique(
obmap_patches.iat(i).data mask_largest_object(
) obmap_patches.iat(i).data
)[-1] )
)[-1]
except Exception as e:
print(i)
print(np.unique(mask_largest_object(obmap_patches.iat(i).data)))
raise e
self._df.loc[roi.Index, 'classify_by_' + name] = oc self._df.loc[roi.Index, 'classify_by_' + name] = oc
om[self.acc_obj_ids.data == roi.label] = oc om[self.acc_obj_ids.data == roi.label] = oc
self.object_class_maps[name] = InMemoryDataAccessor(om) self.object_class_maps[name] = InMemoryDataAccessor(om)
......
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