locan.data.regions.region_utils.get_region_from_intervals

locan.data.regions.region_utils.get_region_from_intervals(intervals)[source]

Constructor for instantiating an axis-oriented region from list of (min, max) bounds.

Parameters:

intervals (Union[_Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[bool | int | float | complex | str | bytes]]) – The region bounds for each dimension of shape (dimension, 2).

Return type:

Interval | AxisOrientedRectangle | AxisOrientedCuboid | AxisOrientedHypercuboid