DatasetsMaker

class gammapy.makers.DatasetsMaker(makers, stack_datasets=True, n_jobs=None, cutout_mode='partial', cutout_width=None)[source]

Bases: gammapy.makers.Maker

Run makers in a chain

Parameters
makerslist of Maker objects

Makers

stack_datasetsbool

Stack into reference dataset or not

n_jobsint

Number of processes to run in parallel Default is None

cutout_modestr

Cutout mode. Default is “partial”

cutout_widthstr or Angle,

Cutout width. Default is None, If Default is determined

Attributes Summary

offset_max

safe_mask_maker

tag

Methods Summary

callback(dataset)

error_callback(dataset)

make_dataset(dataset, observation)

Make single dataset.

run(dataset, observations[, datasets])

Run data reduction

Attributes Documentation

offset_max
safe_mask_maker
tag = 'DatasetsMaker'

Methods Documentation

callback(dataset)[source]
error_callback(dataset)[source]
make_dataset(dataset, observation)[source]

Make single dataset.

Parameters
datasetMapDataset

Reference dataset

observationObservation

Observation

run(dataset, observations, datasets=None)[source]

Run data reduction

Parameters
datasetMapDataset

Reference dataset (used only for stacking if datasets are provided)

observationsObservations

Observations

datasetsDatasets

Base datasets, if provided its length must be the same than the observations.

Returns
datasetsDatasets

Datasets