litebird / litebird_sim

Simulation tools for LiteBIRD
GNU General Public License v3.0
18 stars 13 forks source link

Add support for multiple TODs in `describe_mpi_distribution` #220

Closed ziotom78 closed 1 year ago

ziotom78 commented 1 year ago

This PR adds support for multiple TODs in describe_mpi_distribution. Apart from the possibility to include other TODs in the computation of the allocated memory, this lets one to skip the field Observation.tod, in those cases where it is not allocated, through the use of the new keyword tod_names.

There is a small breaking change here, because now the field tod_dtype of the class MpiProcessDescr is a list of strings instead of a plain string. (This is required, because once multiple TODs are present, it is possible that they have different data types.)