Package ivs :: Package sed :: Module decorators
[hide private]
[frames] | no frames]

Module decorators

source code

Decorators specifically for SED package

Functions [hide private]
 
parallel_gridsearch(fctn)
Decorator to run SED grid fitting in parallel.
source code
 
iterate_gridsearch(fctn)
Decorator to run SED iteratively and zooming in on the minimum.
source code
 
standalone_figure(fctn)
Accept 'savefig' as an extra keyword.
source code
 
blackbody_input(fctn)
Prepare input and output for blackbody-like functions.
source code
Variables [hide private]
  logger = logging.getLogger('SED.DEC')
Function Details [hide private]

parallel_gridsearch(fctn)

source code 

Decorator to run SED grid fitting in parallel.

This splits up the effective temperature range between teffrange[0] and teffrange[1] in 'threads' parts.

This must decorate a 'make_parallel' decorator.

iterate_gridsearch(fctn)

source code 

Decorator to run SED iteratively and zooming in on the minimum.

iterations: number of iterative zoom-ins increase: increase in number of grid points in each search (1 means no increase) size: speed of zoomin: the higher, the slower

standalone_figure(fctn)

source code 

Accept 'savefig' as an extra keyword. If it is given, start a new figure and save it to the filename given, and close it!

blackbody_input(fctn)

source code 

Prepare input and output for blackbody-like functions.

If the user gives wavelength units and Flambda units, we only need to convert everything to SI (and back to the desired units in the end).

If the user gives frequency units and Fnu units, we only need to convert everything to SI ( and back to the desired units in the end).

If the user gives wavelength units and Fnu units, we need to convert the wavelengths first to frequency.