threeML.utils.fitted_objects package

Submodules

threeML.utils.fitted_objects.fitted_point_sources module

class threeML.utils.fitted_objects.fitted_point_sources.DifferentialFluxConversion(flux_unit, energy_unit, flux_model, test_model)[source]

Bases: threeML.utils.fitted_objects.fitted_point_sources.FluxConversion

class threeML.utils.fitted_objects.fitted_point_sources.FittedPointSourceSpectralHandler(analysis_result, source, energy_range, energy_unit, flux_unit, confidence_level=0.68, equal_tailed=True, component=None, is_differential_flux=True)[source]

Bases: threeML.utils.fitted_objects.fitted_source_handler.GenericFittedSourceHandler

property components
Returns

the components of the function

property is_dimensionless
class threeML.utils.fitted_objects.fitted_point_sources.FluxConversion(flux_unit, energy_unit, flux_model)[source]

Bases: object

property conversion_factor

the conversion factor needed to finalize the model into the proper units after computations

Returns

property is_dimensionless
property model

the model converted

Returns

a model in the proper units

class threeML.utils.fitted_objects.fitted_point_sources.IntegralFluxConversion(flux_unit, energy_unit, flux_model, test_model)[source]

Bases: threeML.utils.fitted_objects.fitted_point_sources.FluxConversion

exception threeML.utils.fitted_objects.fitted_point_sources.InvalidUnitError[source]

Bases: RuntimeError

exception threeML.utils.fitted_objects.fitted_point_sources.NotCompositeModelError[source]

Bases: RuntimeError

threeML.utils.fitted_objects.fitted_source_handler module

class threeML.utils.fitted_objects.fitted_source_handler.GenericFittedSourceHandler(analysis_result, new_function, parameter_names, parameters, confidence_level, equal_tailed, *independent_variable_range)[source]

Bases: object

property average
Returns

the average of the variates

property lower_error
Returns

the lower error of the variates

property median
Returns

the median of the variates

property samples
Returns

the raw samples of the variates

update_tag(tag, value)[source]
property upper_error
Returns

the upper error of the variates

property values
Returns

The VariatesContainer

class threeML.utils.fitted_objects.fitted_source_handler.VariatesContainer(values, out_shape, cl, transform, equal_tailed=True)[source]

Bases: object

property average
Returns

the transformed average

property lower_error
Returns

the transformed lower error

property median
Returns

the transformed median

property samples
Returns

the transformed raw samples

property upper_error
Returns

the transformed upper error

property values
Returns

the list of of RandomVariates

threeML.utils.fitted_objects.fitted_source_handler.transform(method)[source]

A wrapper to call the _transform method for outputs of Variates container class :param method: :return:

Module contents