DataSpaceND

class sherpa.data.DataSpaceND(filter, indep)[source] [edit on github]

Bases: object

Class for representing arbitray N-Dimensional data domains

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

  • indep (tuple of array_like) – The tuple of independent axes. The arrays are copied rather than storing a reference.

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 independent arrays are returned unchanged, i.e. unlike the DataSpace2D class they are not meshed

Returns:

A tuple representing the independent axes.

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

Return type:

DataSpaceND