pytmosph3r.observations.parallel
Module Contents
- transit_depth_i(transmission, rk, nprocs, dimension, *args, **kwargs)[source]
Returns a list of integrals that will be concatenated/stacked together with the rest.
- class Parallel(name, nprocs=None, dimension='rays')[source]
Bases:
pytmosph3r.log.Logger
Base class for a parallel version of the transit depth (see
Transmission
).- Parameters:
nprocs (int) – number of procs (by default, maximum).
dimension (str) – Dimension to subdivide among workers. Possible values are spectral, angles, or rays. A spectral subdivision shares the spectral range among the workers, angles means the angular points of the rays grid are used, while rays means all of the rays grid is shared among the workers.
- nprocs
- class MultiProcTransit(nprocs=None, *args, **kwargs)[source]
Bases:
Parallel
Base class for a parallel version of the transit depth (see
Transmission
).- Parameters:
nprocs (int) – number of procs (by default, maximum).
dimension (str) – Dimension to subdivide among workers. Possible values are spectral, angles, or rays. A spectral subdivision shares the spectral range among the workers, angles means the angular points of the rays grid are used, while rays means all of the rays grid is shared among the workers.