CMM.preset.preset_tools module

class CMM.preset.preset_tools.PresetTools(comm)[source]

Bases: object

Preset Tools.

Instance to initialize the Components Map-Making. It contains tool functions used in all the different files and the simulation parameters.

Parameters:

comm (MPI communicator) – MPI common communicator define by MPI.COMM_WORLD.

params

Dictionary containing all the simulations parameters.

Type:

dict

Methods

check_for_errors()

Errors check.

create_folder_if_not_exists(folder_name)

Create folder.

display_simulation_configuration()

Display the simulation configuration details.

check_for_errors()[source]

Errors check.

Checks for various parameter errors in the ‘params.yml’ file.

Raises:

TypeError – If any of the parameter checks fail.

create_folder_if_not_exists(folder_name)[source]

Create folder.

Creates a folder with the specified name if it does not already exist.

Parameters:

folder_name (str) – The name of the folder to create.

display_simulation_configuration()[source]

Display the simulation configuration details.

This method prints out the configuration settings for the simulation, including details about the sky input and output, QUBIC instrument settings, and MPI tasks. The configuration is only displayed if the rank of the process is 0.