Dataset

class gammapy.datasets.Dataset[source]

Bases: abc.ABC

Dataset abstract base class.

TODO: add tutorial how to create your own dataset types.

For now, see existing examples in Gammapy how this works:

  • gammapy.cube.MapDataset

  • gammapy.spectrum.SpectrumDataset

  • gammapy.spectrum.FluxPointsDataset

Attributes Summary

mask

Combined fit and safe mask

Methods Summary

copy(self[, name])

A deep copy.

stat_array(self)

Statistic array, one value per data point.

stat_sum(self)

Total statistic given the current model parameters.

Attributes Documentation

mask

Combined fit and safe mask

Methods Documentation

copy(self, name=None)[source]

A deep copy.

abstract stat_array(self)[source]

Statistic array, one value per data point.

stat_sum(self)[source]

Total statistic given the current model parameters.