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:

Attributes Summary

mask

Combined fit and safe mask

name

tag

Methods Summary

copy([name])

A deep copy.

stat_array()

Statistic array, one value per data point.

stat_sum()

Total statistic given the current model parameters.

to_dict()

Convert to dict for YAML serialization.

Attributes Documentation

mask#

Combined fit and safe mask

name#
tag#

Methods Documentation

copy(name=None)[source]#

A deep copy.

Parameters
namestr

Name of the copied dataset

Returns
datasetDataset

Copied datasets.

abstract stat_array()[source]#

Statistic array, one value per data point.

stat_sum()[source]#

Total statistic given the current model parameters.

to_dict()[source]#

Convert to dict for YAML serialization.