megatop.config
megatop.config.CAMBCosmoPars
Bases: StrictModel
Source code in src/megatop/config.py
as_camb_kwargs()
Kwargs ready for camb.set_params(**...): extras merged first, named fields win on collision.
megatop.config.Config
Bases: StrictModel
Class holding the global configuration for Megatop.
Source code in src/megatop/config.py
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 | |
nside
property
The HEALPix nside parameter
lmin
property
The minimum multipole ell
lmax
property
The maximum multipole ell
frequencies
property
The list of frequencies (in GHz)
beams
property
The list of beam FWHMs (in arcminutes)
maps
property
The list of maps
sky_model
property
The list of components in the sky model
load_yaml(path)
classmethod
Load and instantiate a Config from a YAML file.
dump_yaml(path)
Dump the config to a YAML file.
The '.yaml' suffix is automatically added if not already present.
Source code in src/megatop/config.py
get_example()
classmethod
Return an example configuration with one map set
Source code in src/megatop/config.py
split_map_sets(num_colors, color=0)
Split the configuration into color groups (similar to MPI_Comm_split).
Returns a different configuration based on a color value, allowing for parallel processing of map sets. Each color group gets a configuration with the same subset of map_sets.
Parameters:
-
num_colors(int) –Number of color groups to split the configuration into.
-
color(int, default:0) –Index used to select which map_set group to return.
Returns:
-
Config(Config) –A new Config object containing only the map_sets corresponding to the given color. All other configuration parameters remain unchanged.
Source code in src/megatop/config.py
megatop.config.CompSepConfig
Bases: StrictModel
Source code in src/megatop/config.py
get_minimize_options_as_dict()
Return the minimize options as a dictionary.
If the minimize method is 'TNC', rename 'maxiter' to 'maxfun'.
Source code in src/megatop/config.py
megatop.config.Map2ClConfig
Bases: StrictModel
Source code in src/megatop/config.py
delta_ell = 10
class-attribute
instance-attribute
Width of uniform multipole bins.
uniform_start = None
class-attribute
instance-attribute
If set, first bin spans [2, uniform_start - 1] and uniform bins of width delta_ell start at uniform_start.
purify_e = False
class-attribute
instance-attribute
Purify E modes in NaMaster field construction.
purify_b = True
class-attribute
instance-attribute
Purify B modes in NaMaster field construction.
n_iter_namaster = 3
class-attribute
instance-attribute
Number of iterations for NaMaster map2alm.
megatop.config.MapSetConfig
Bases: StrictModel
Source code in src/megatop/config.py
nhits_map_path = None
class-attribute
instance-attribute
Hit-count map. "SO_nominal" downloads the SO nominal SAT hitmap.
Assumed to be in equatorial (celestial) coordinates, like all pipeline products.
depth_map_path = None
class-attribute
instance-attribute
Depth (noise) map used to derive hit counts. Assumed equatorial (celestial).
megatop.config.MapSimConfig
Bases: StrictModel
Source code in src/megatop/config.py
sky_model = Field(default_factory=(lambda: ['d0', 's0']))
class-attribute
instance-attribute
Pysm sky models included in the foreground simulations.
r_input = 0
class-attribute
instance-attribute
Tensor to scalar ratio value in the generated CMB simulations
A_lens = 1
class-attribute
instance-attribute
A_lens value in the generated CMB simulations
cmb_seed = 67
class-attribute
instance-attribute
Integer seed for the CMB.
single_cmb = False
class-attribute
instance-attribute
If True, CMB seed is kept constant for all realizations.
filter_sims = False
class-attribute
instance-attribute
If True, the Observation Matrices provided in map_sets will be applied on the CMB + Foreground maps generated in the mocker.
generate_sims_for_TF = False
class-attribute
instance-attribute
If True, power law simulations will be generated and filtered for the Transfer Function pipeline step
TF_power_law_amp = 1.0
class-attribute
instance-attribute
The amplitude for the power law used in TF simulations
TF_power_law_index = 2.0
class-attribute
instance-attribute
ABSOLUTE value of the spectral index of the TF simulation power law. WARNING: a minus sign is already added inside the code (in SOOPERCOOL)
TF_n_sim = 1
class-attribute
instance-attribute
Number of simulation generated for the TF computation.
passband_int = False
class-attribute
instance-attribute
If True, sky maps will be integrated over the passbands provided in the map_sets. Passbands will also be included in the SED computation in the component separation.
megatop.config.NoiseSimConfig
Bases: StrictModel
Source code in src/megatop/config.py
seed = 42
class-attribute
instance-attribute
Integer seed for the noise simulations.
megatop.config.V3Noise
megatop.config.V3Sensitivity
megatop.config.NameSerializedIntEnum
Bases: IntEnum
IntEnum that serializes by member name, not numeric value.
YAML round-trip preserves names like GOAL / OPTIMISTIC rather than
integers. Accepts the enum itself, a name string, or the int value on input.
Source code in src/megatop/config.py
megatop.config.StrictModel
megatop.config.Cl2rConfig
Bases: StrictModel
Source code in src/megatop/config.py
dust_marg = False
class-attribute
instance-attribute
If True, the cosmological likelihood is marginalised over dust amplitude which scales the dust power spectrum computed from the dust map obtained from the component separation step
sync_marg = False
class-attribute
instance-attribute
If True, the cosmological likelihood is marginalised over synchrotron amplitude which scales the synchrotron power spectrum computed from the synchrotron map obtained from the component separation step
n_walkers = 200
class-attribute
instance-attribute
Number of walkers used in the MCMC of the cosmological likelihood
n_steps = 10000
class-attribute
instance-attribute
Number of steps in the MCMC of the cosmological likelihood
n_steps_burnin = 2000
class-attribute
instance-attribute
Number of burnin steps in the MCMC of the cosmological likelihood
lmin_cosmo_analysis = None
class-attribute
instance-attribute
Minimum multipole ell used in the cosmological analysis.
lmax_cosmo_analysis = None
class-attribute
instance-attribute
Maximum multipole ell used in the cosmological analysis.