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