astromodels.sources.extended_source module

class astromodels.sources.extended_source.ExtendedSource(source_name, spatial_shape, spectral_shape=None, components=None, polarization=None)[source]

Bases: Source, Node

property free_parameters

Returns a dictionary of free parameters for this source We use the parameter path as the key because it’s guaranteed to be unique, unlike the parameter name.

Returns:

get_boundaries()[source]

Returns the boundaries for this extended source

Returns:

a tuple of tuples ((min. lon, max. lon), (min lat, max lat))

get_spatially_integrated_flux(energies)[source]

Returns total flux of source at the given energy :param energies: energies (array or float) :return: differential flux at given energy

property has_free_parameters

Returns True or False whether there is any parameter in this source

Returns:

property parameters

Returns a dictionary of all parameters for this source. We use the parameter path as the key because it’s guaranteed to be unique, unlike the parameter name.

Returns:

property spatial_shape

A generic name for the spatial shape.

Returns:

the spatial shape instance