exorad.tasks.loadSource module

class LoadSource[source]

Bases: Task

Updates target with its source and return the source Sed

Parameters:
  • target (Target Class) – target class

  • source (dict) – source spectrum description

  • wl_range (couple) – wavelength range to investigate: (wl_min, wl_max)

Returns:

  • Target – Target class with star.sed updated

  • Sed – source Sed

Examples

>>> loadSource = LoadSource()
>>> target, source = loadSource(target= target, source={'sourceSpectrum': {'value':'Planck'}})
Raises:

AttributeError: – if some target information are missing

Class initialisation, needed to prepare the task inputs reader

execute()[source]

Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords