Segmentation.generate_slice_name#
- Segmentation.generate_slice_name(slice_)[source]#
Generate name for a slice of the segmentation from parameters.
- Parameters:
slice (SegmentationSlice) – Parameters to generate name from.
slice_ (SegmentationSlice)
- Returns:
Name of slice from parameters in the form “{name}{value}_{name 2}{value 2}” e.g. “p1_m3”, where name is the segment alias if it has one. The order of the parameters is defined by the segmentation naming_order.
- Return type: