Skip to content

v1.1.3

Choose a tag to compare

@1313e 1313e released this 26 Jul 04:02
· 258 commits to master since this release
76429a3

This is the v1.1.3 release of the PRISM package.

New additions:

  • PRISM now has a Gitter chat room;
  • Added a section on when (not) to use PRISM;
  • The MCMC functions can now also take dicts as inputs;
  • The Emulator class now has a new property called 'poly_terms', which is a user-convenience property that shows the 'poly_powers' and 'poly_coef' properties in a more readable way. It has no underlying counterpart;
  • Added four Jupyter notebooks with tutorials on how to use PRISM. More will be coming soon.

Bugfixes:

  • The requested emul_i is now properly used for calling project() in the __call__()/run()-method;
  • The get_walkers()-function now returns a copy of pipe.impl_sam to avoid modifications to the internally stored values.

Changes/Optimizations:

  • Made several modifications to the documentation to better clarify what model parameters and model data means;
  • PRISM now uses the threadpoolctl package to control the number of OpenMP threads NumPy is allowed to use, depending on the current state of the pipeline;
  • The calculations of all grid pixels in the projection figures is much more efficient now;
  • The number of grid bins in the projection figures now depends more on the chosen DPI and figsize. This ensures that the time required to interpolate for the figures is minimized;
  • The calculation of the inverse covariance matrix now uses the Moore-Penrose generalized inverse, which heavily reduces the floating point errors in some calculations;
  • The Emulator 'method' is now always saved in lowercase, therefore removing the need to transform it into lowercase every time it is checked;
  • The evaluate()-method now prints a requested 1D sample as a dict instead of a NumPy array;
  • The _check_sam_set()-method of the ModelLink class is now more efficient and prints more helpful error messages;
  • Renamed the get_lnpost_fn()-function to get_hybrid_lnpost_fn(), and made it more efficient in terms of memory consumption (the old function name will be removed completely in v1.2.0);
  • The unit_space input argument for the MCMC functions is now by default set to False;
  • Overhauled a large part of the online documentation on hybrid sampling to be more clear about how exactly it works.