nmrglue.analysis.analysisbase.limits2slice

nmrglue.analysis.analysisbase.limits2slice(limits)[source]

Create a set of slice objects given an array of min, max limits.

Parameters
limits: tuple, (ndarray, ndarray)

Two tuple consisting of array of the minimum and maximum indices.

Returns
sliceslist

List of slice objects which return points between limits

See also

find_limits

Find the minimum and maximum limits from a list of points.

slice2limits

Find a minimum and maximum limits for a list of slices.