add_response

sherpa.astro.background.add_response(session, id, data, model)[source] [edit on github]

Create the response model describing the source and model.

Include any background components and apply the response model for the dataset.

Parameters
  • session (sherpa.astro.ui.utils.Session instance) –

  • id (int or str) – The identifier for the dataset.

  • data (sherpa.astro.data.DataPHA instance) – The dataset (may be a background dataset).

  • model (sherpa.models.model.ArithmeticModel instance) – The model (without response or background components) to match to data.

Returns

fullmodel – The model including the necessary response models and background components.

Return type

sherpa.models.model.ArithmeticModel