You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make "Registering of All Segments for a BBox"- feature mag aware (#8082)
* mag register all segments for bbox feature mag aware
* remove console.logs
* add error toasts for missing mag or segmentation layer
* add changelog
* improve changelog
* move line
* bubble up API error to open toast in view
* fix mag-related edge case
* register segments for segmentation layers without volume annotation layers
* add warning toast if segmentation layer isnt editable
Copy file name to clipboardExpand all lines: CHANGELOG.unreleased.md
+1
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
14
14
- It is now possible to focus a bounding box in the bounding box tab by clicking its edges in a viewport or via a newly added context menu entry. [#8054](https://github.com/scalableminds/webknossos/pull/8054)
15
15
- Added the option to export nd datasets as ome tiff or tiff stack. Previously, this was only possible for 3d datasets. [#7971](https://github.com/scalableminds/webknossos/pull/7971)
16
16
- Added an assertion to the backend to ensure unique keys in the metadata info of datasets and folders. [#8068](https://github.com/scalableminds/webknossos/issues/8068)
17
+
- The feature to register all segments within a bounding box now takes the current magnification into consideration, e.g. for calculating the volume limit for a bounding box. [#8082](https://github.com/scalableminds/webknossos/pull/8082)
17
18
18
19
### Changed
19
20
- Clicking on a bounding box within the bounding box tab centers it within the viewports and focusses it in the list. [#8049](https://github.com/scalableminds/webknossos/pull/8049)
`The volume of the bounding box exceeds ${maximumVolume}Vx, please make it smaller.`,
690
+
thrownewError(
691
+
`The volume of the bounding box exceeds ${maximumVolume}vx, please make it smaller. Currently, the bounding box has a volume of ${volume} vx in the active resolution (${currentMag.join("-")}).`,
667
692
);
668
-
return;
669
693
}elseif(volume>maximumVolume/8){
670
694
Toast.warning(
671
695
"The volume of the bounding box is very large, registering all segments might take a while.",
`The given bounding box contains ${segmentIdCount} segments, but only ${maximumSegmentCount} segments can be registered at once. Please reduce the size of the bounding box.`,
708
728
);
709
-
return;
710
729
}elseif(segmentIdCount>halfMaxNoSegments){
711
730
Toast.warning(
712
731
`The bounding box contains more than ${halfMaxNoSegments} segments. Registering all segments might take a while.`,
713
732
);
714
733
}
715
734
716
-
constgroupId=api.tracing.createSegmentGroup(
717
-
`Segments for ${bbName}`,
718
-
-1,
719
-
segmentationLayerName,
720
-
);
735
+
letgroupId=MISSING_GROUP_ID;
736
+
try{
737
+
groupId=api.tracing.createSegmentGroup(`Segments for ${bbName}`,-1,segmentationLayerName);
738
+
}catch(_e){
739
+
console.info(
740
+
`Volume tracing could not be found for the currently visible segmentation layer, registering segments for ${bbName} within root group.`,
741
+
);
742
+
Toast.warning(
743
+
"The current segmentation layer is not editable and the segment list will not be persisted across page reloads. You can make it editable by clicking on the lock symbol to the right of the layer name.",
0 commit comments