DataSpace2D

class sherpa.data.DataSpace2D(filter, x0, x1)[source] [edit on github]

Bases: object

Class for representing 2-D Data Spaces. Data Spaces are spaces that describe the data domain.

Attributes Summary

grid Return the grid representation of this dataset.

Methods Summary

get([filter]) Get a filtered representation of this data set.

Attributes Documentation

grid

Return 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:A tuple representing the x0 and x1 axes. The tuple will contain two arrays.
Return type:tuple

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
Returns:
Return type:DataSpace2D