IntegratedDataSpace2D

class sherpa.data.IntegratedDataSpace2D(filter, x0lo, x1lo, x0hi, x1hi)[source] [edit on github]

Bases: object

Same as DataSpace2D, but for supporting integrated data sets.

Parameters:
  • filter (Filter) – A filter object that initialized this data space.

  • x0lo (array_like) – The lower bounds array of the first and second axes, then the upper bounds.

  • x1lo (array_like) – The lower bounds array of the first and second axes, then the upper bounds.

  • x0hi (array_like) – The lower bounds array of the first and second axes, then the upper bounds.

  • x1hi (array_like) – The lower bounds array of the first and second axes, then the upper bounds.

Attributes Summary

grid

The grid representation of this dataset.

x0hi

Return the first axis (high edge).

x0lo

Return the first axis (low edge)

x1hi

Return the second axis (high edge).

x1lo

Return the second axis (low edge).

Methods Summary

get([filter])

Get a filtered representation of this data set.

Attributes Documentation

grid

The grid representation of this dataset.

The x0 and x1 arrays in the grid are one-dimensional representations of the meshgrid obtained from the x and y axis arrays, as in numpy.meshgrid(x, y)[0].ravel()

Returns:

(x0lo, x1lo, x0hi, x1hi) – The axis data.

Return type:

(ndarray, ndarray, ndarray, ndarray)

x0hi

Return the first axis (high edge).

x0lo

Return the first axis (low edge)

x1hi

Return the second axis (high edge).

x1lo

Return the second axis (low edge).

Methods Documentation

get(filter=False)[source] [edit on github]

Get a filtered representation of this data set. If filter is False this object is returned.

Parameters:

filter (bool) – whether the data set should be filtered before being returned

Return type:

IntegratedDataSpace2D