pytmosph3r.observations.parallel

Module Contents

transit_depth_angle(transmission, rk, nprocs, *args, **kwargs)[source]
transit_depth_grid(transmission, rk, nprocs, *args, **kwargs)[source]
transit_depth_wn(transmission, rk, nprocs, *args, **kwargs)[source]
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
synchronize(model)[source]
compute_integral(transmission, *args, **kwargs)[source]

Compute integral over nprocs processes by subdividing the work along the spectral dimension (if dimension is “spectral) or rays dimension(s).

retrieve_results(results)[source]
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.