core

module reference

core.__init__.py: The core module collects all essential functions needed for delensalot to do its job. Here, you find the filters, the QE and MAP reconstruction routines, etc.

handler

handler.py: This module collects the delensalot jobs. It receives the delensalot model build for the respective job. They all initialize needed modules and directories, collect the computing-jobs, and run the computing-jobs, with MPI support, if available.

class delensalot.core.handler.MAP_lr(**kwargs)[source]

Iterative lensing reconstruction Job. Depends on class QE_lr, and class Sim_generator. Performs tasks such as lensing reconstruction, mean-field calculation, and B-lensing template calculation.

class delensalot.core.handler.Map_delenser(**kwargs)[source]

Map delenser Job for calculating delensed ILC and Blens spectra using precaulculated Btemplates as input. This is a combination of,

  • delensing with Btemplates (QE, MAP),

  • choosing power spectrum calculation as in binning, masking, and templating

class delensalot.core.handler.OBD_builder(**kwargs)[source]

OBD matrix builder Job. Calculates the OBD matrix, used to correctly deproject the B-modes at a masked sky.

class delensalot.core.handler.QE_lr(**kwargs)[source]

Quadratic estimate lensing reconstruction Job. Performs tasks such as lensing reconstruction, mean-field calculation, and B-lensing template calculation.

class delensalot.core.handler.Sim_generator(dlensalot_model)[source]

Simulation generation Job. Generates simulations for the requested configuration. * If any libdir exists, then a flavour of data is provided. Therefore, can only check by making sure flavour == obs, and fns exist.

iterator

iteration_handler.py: This module is a passthrough to Dlensalot.cs_iterator. In the future, it will serve as a template module, which helps setting up an iterator, (e.g. permf or constmf), and decide which object on iteration level will be used, (e.g. cg, bfgs, filter).

Module for curved-sky iterative lensing estimation

Version revised on March 2023

Among the changes:
  • delensalot’ed this with great improvements in execution time

  • novel and more stable way of calculating the delfection angles and inverses

  • optionally change main variable from plm to klm or dlm with expected better behavior ?

  • rid of alm2rlm which was just wasting a little bit of time and loads of memory

  • abstracted bfgs with cacher and dot_op

#FIXME: loading of total gradient seems mixed up with loading of quadratic gradient… #TODO: make plm0 possibly a path? #FIXME: Chh = 0 not resulting in 0 estimate

opfilt

module reference

opfilt.__init__.py: These are QE and MAP filters, and include both isotropic (unmasked sky) and isotropic (masked sky) versions. The e/p/t/gpt refer to E-only/polarization/temperature/generalized-polarization-temperature

opfilt.opfilt_handler.py: interface to opfilt via transformer