PhotonFluence

class gdt.core.spectra.parameters.PhotonFluence(value, uncert, energy_range)[source]

Bases: Parameter

A photon fluence class.

Parameters:
  • value (float) – The central fluence value

  • uncert (float or 2-tuple) – The 1-sigma uncertainty

  • energy_range (tuple) – A 2-tuple (low, high) for the energy range

Attributes Summary

energy_range

A 2-tuple (low, high) for the energy range

name

The name of the parameter

support

The valid support of the parameter

uncertainty

The 1-sigma uncertainty

units

The units of the parameter

value

The central fit value

Methods Summary

one_sigma_range()

Return the 1 sigma range of the parameter fit

to_fits_value()

Return as a tuple to be used for a FITS file

valid_value()

Check if the parameter value is within the allowed parameter range

Attributes Documentation

energy_range

A 2-tuple (low, high) for the energy range

Type:

(tuple)

name

The name of the parameter

Type:

(str)

support

The valid support of the parameter

Type:

(2-tuple)

uncertainty

The 1-sigma uncertainty

Type:

(float, float)

units

The units of the parameter

Type:

(str)

value

The central fit value

Type:

(float)

Methods Documentation

one_sigma_range()

Return the 1 sigma range of the parameter fit

Returns:

(tuple) – 2-tuple (low, high)

to_fits_value()

Return as a tuple to be used for a FITS file

Returns:

(tuple) – 3-value tuple (value, +uncertainty, -uncertainty)

valid_value()

Check if the parameter value is within the allowed parameter range

Returns:

(bool)