Cobaya

Latest version: v3.5.4

Safety actively analyzes 688126 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

3.2

General

- Documented uses of `Model` class in general contexts (previously only cosmo)
- `Model` methods to compute log-probabilities and derived parameters now have an `as_dict` keyword (default `False`), for more informative return value.

Cosmological likelihoods and theory codes

- `Pk_interpolator`: added extrapolation up to `extrap_kmin` and improved robustness

CAMB

- Removed problematic `zrei: zre` alias (fixes 199, thanks pcampeti)
- Added `Omega_b|cdm|nu_massive(z)` and `angular_diameter_distance_2`
- Returned values for `get_sigma_R` changed from `R, z, sigma(z, R)` to `z, R, sigma(z, R)`.
- Support setting individual Accuracy parameters, e.g. Accuracy.AccurateBB
- Calculate accurate BB when tensors are requested
- Fix for using derived parameters with post-processing
- Added `ignore_obsolete` option to be able to run with user-modified older CAMB versions.

CLASS

- Updated to v3.2.0
- Added `Omega_b|cdm|nu_massive(z)`, `angular_diameter_distance_2`, `sigmaR(z)`, `sigma8(z)`, `fsgima8(z)` and Weyl potential power spectrum.
- Added `ignore_obsolete` option to be able to run with user-modified older CLASS versions.
- Added direct access to some CLASS computation products, via new requisites `CLASS_[background|thermodynamics|primordial|perturbations|sources]`.
- Changed behaviour for `non_linear`: if not present in `extra_args`, uses the current default non-linear code (HMcode) instead of no non-linear code. To impose no non-linear corrections, pass `non_linear: False`.

BAO

- Added Boss DR16 likelihoods (185, by Pablo-Lemos)

BICEP-Keck

- Bugfix in decorrelation function 196 (by Caterina Umilta, umilta)
- Updated to 2021 data release (2018 data) and bugfix, 204 and 209 (by Dominic Beck, doicbek)

Planck

- Fixed segfault in clik when receiving NaN in the Cl's. Partially implements 231 (thanks lukashergt and williamjameshandley)

3.1.1

- Changes for compatibility with Pandas 1.3 (which broke convergence testing amongst other things).
- Updated docs with list of external likelihood codes, and to help avoid issues with PySide install
- Minor fixes in BAO/SN likelihoods

3.1

General

- updated and added documentation for cobaya-run-job; added cobaya-running-jobs and cobaya-delete-jobs
- Allow for more general dependencies between input parameters, derived parameters and likelihood/theory/prior inputs
- run, post and get_model can now all take inputs from a dictionary, yaml text or yaml
filename
- Support resuming of a completed run with changed convergence parameters
- run has optional arguments to set debug, force, output, etc settings
- More input and output typing for easier static error detection; added cobaya.typing for static checking of input dictionaries using TypedDict when available
- Refactoring of cobaya.conventions to remove most string literals and rename non-private constants starting with _
- Uses GetDist 1.2.2+ which fixes sign loading the logposterior value from Cobaya
collection
- Optimized calculation of Gaussian 1D priors
- run settings saved to ".updated.dill_pickle" pickle file in cases where callable/class
content cannot be preserved in yaml (install "dill")
- File locks to avoid overwriting results accidentally from multiple non-MPI processes
- Commonly-used classes can now be loaded simply using "from cobaya import Likelihood, InputDict, Theory, ..." etc., or call e.g. cobaya.run(..)
- run and post return NamedTuples (same content as before)
- Fixed handling of "type" in external likelihood functions
- bib_script and doc_script can now be called programmatically
- MPI support refactored using decorators
- requirements can now also be specified as list of name, dictionary tuples (in case name needs to be repeated)
- renamed Collection -> SampleCollection (to avoid confusion with general typing.Collection)
- allow loading of CamelCase classes from module with lowercase name. Class "file_base_name" attribute to
optionally specify the root name for yaml and bib files. Some supplied classes renamed.
- allow input likelihoods and theories to be instances (as well as classes); [provisional]

MCMC

- Fixed bug with "drag: True" that gave wrong results
- MPI reworked, now avoids ending and error deadlocks, and synchronizing exceptions
(raising OtherProcessError on non-excepting processes)
- Random number generation now using numpy 1.17 generators and MPI seeds generated using SeedSequence
(note MPI runs generally not reproducible with fixed seed due to thead timing/asynchronous mpi exchanges)
- Overhead reduced by at least 40%, thanks to caching in Collection
- Optimization of derived parameter output (for dragging, not computed at each dragging step)
- Some refactoring/simplification to pass LogPosterior instances more
- Reported acceptance rate is now only over last half chains (for MPI), or skipping first Rminus1_single_split fraction
- When no covamt or 'prosposal' setting for a parameter, the fallback proposal width is now scaled (narrower) from the ref or prior variance

Post-processing

- post function reworked to support MPI, thinning, and more general parameter-dependence
operations
- On one process operating on list of samples outputs consistent list of samples rather
than concatenating
- Output is produced incrementally, so terminated jobs still produce valid output
- No unnecessary theory recalculations
- Support for loading from CosmoMC/Getdist-format chains.
- Function in cobaya.cosmo_input.convert_cosmomc to general Cobaya-style info from
existing CosmoMC chains (some likelihood/theory information may have to be added if you
are recalculating things)

Minimize

- `PyBOBYQA` updated to 1.2, and quieter by default.
- 'best_of' parameter to probe different random starting positions (replacing seek_global_minimum for non-MPI)
- 'rhobeg' parameter larger to avoid odd hangs

Cosmology:

- Added CamSpec 2021 Planck high-l likelihoods (based on legacy maps, not NPIPE; thanks Erik Rosenberg)
- Added Riess et al H0 constraint (H0.riess2020Mb) in terms of magnitude rather than directly on H0
(use combined with sn.pantheon with use_abs_mag: True; thanks Pablo Lemos)
- Install updated Planck clik code (3.1)

Tests

- Added MPI tests and markers, synchronize errors to avoid pytest hangs on mpi errors
- Added new fast but more realistic running, resuming and post tests with and without mpi
- Fixed some randomized test inputs for more reliable running
- drag: True running test
- Coverage reporting added to Travis
- More useful traceback and console log when error raised running pytest
- added COBAYA_DEBUG env variable that can be set to force debug output (e.g. set in travis for failed build rerun)

3.0.4

General

- Added current-state-related properties to Theory (`current_state`
replacing `_current_state` attribute, and `current_derived`
replacing `get_current_derived()` method) and LikelihoodInterface(`current_logp`
replacing `get_current_logp`).
- Reworked and simplified error propagation for `Theory` and `Likelihood`: clearer error
messages and more predictable traceback printing.
- `abstract` decorator for base classes: better control of which methods of a parent
class have been implemented/overridden (useful e.g. for Theory classes inheriting from a
more general one but not implementing all possible quantities that the parent class
defines).
- For components with defaults, type annotations for class attributes now automatically
recognised as possible input options (previously only class attributes definitions).
- Shorter parameter specification now
possible: `<param_name>: [<prior_min>,<prior_max>,<ref_loc>,<ref_scale>,<proposal_width>]`
, assuming a uniform prior and a normal reference pdf.
- Got up to date with changes in numpy 1.20.
- bugfix: `model.add_requirements()` does not overwrite previous calls any more.

Cosmology:

- Interfaced sigma8 for arbitrary redshift (PR 144; thanks Pablo-Lemos)
- Standardised naming conventions of base classes (CamelCasing, no leading underscores,
simpler names). Added workarounds and deprecation notices for some of the old names.
- Updated cosmology `Model` example in docs.
- Added A. Lewis' CMB forecast data generator in `CMBlikes` definition file.
- `Boltzmann`: added unlensed Cl's with CAMB and CLASS.
- `CMBlikes`: small improvements, fixes, and docs.
- `InstallableLikelihood` now works with no `install_options` defined (local data).
- bugfix: bad handling of CMB polarisation capitalisation in `Boltzmann`.
- bugfix: bad `if` condition when retrieving sigmaR from `camb` (thanks gcanasherrera and
matmartinelli)
- bugfix: unnecessary `camb` recomputations when setting some parameters as `extra_args`;
fixes 142 (thanks kimmywu)

3.0.3

General

- Bugfixes when using `cobaya.sample.get_sampler()`
- More informative error tracebacks; fixes 121 (thanks msyriac)
- Uniform priors can now be specified simply as `[<min>, <max>]`
- Likelihoods can now be renamed and used mutiple times simultaneously; fixes 126 (thanks
Pablo-Lemos)

Bibliography tools

- Bibtex files can now be specified via a class attribute, making inheritance easier (used
to remove duplication)
- Component description now separate from bibtex code; by default, the component class
docstring is used as description.
- Descriptions can be overridden to account for component input options (e.g. the actual
method used in the minimizer).

Installation scripts

- Several bugs fixed: 123, 127 and others (thanks timothydmorton, xgarrido)

Minimize

- MCMC checkpoints are not deleted any more (was preventing resuming); fixes 124 (thanks
misharash)

Cosmological likelihoods and theory codes

BAO

- Added Hubble distance and fix to `bao.generic` (Thanks Pablo-Lemos)

H0

- Added Riess 2020 and Freedman et al 2020
- Normalisation changed to chi2; fixes 105 (thanks jcolinhill)

CAMB

- Fixed wrong sigma8 when z=0 not requested; fixes 128, 130, 132 (thanks Pablo-Lemos
and msyriac)

CLASS

- Fixed ignoring `l_max_scalars` (thanks Florian Stadtmann)
- Fixed 106 (thanks lukashergt)
- Adds min gcc version check for 6.4 (thanks williamjameshandley)

cosmo-generator

- Fixed PySide2 problem in newer systems; fixes 114 (thanks talabadi)
- Fixed missing `Sampler` combo box (thanks williamjameshandley)

3.0.2

General

- Installation bug fix.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.