astromodels.sources.source module

class astromodels.sources.source.Source(list_of_components: List[Any], src_type: str, spatial_shape=None)[source]

Bases: object

property components: Dict[str, Any]

Return the dictionary of components

Returns:

dictionary of components

property free_parameters: Dict[str, Parameter]

Returns a dictionary of free parameters for this source

Returns:

property has_free_parameters: bool
property source_type: str

Return the type of the source (‘point source’ or ‘extended source’)

Returns:

type of the source

class astromodels.sources.source.SourceType(value)[source]

Bases: Enum

An enumeration.

EXTENDED_SOURCE = 'extended source'
PARTICLE_SOURCE = 'particle source'
POINT_SOURCE = 'point source'
exception astromodels.sources.source.UnknownSourceType[source]

Bases: Exception