-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tunable CCL global settings at the Python-level (#918)
* first commit * ParamStruct methods keys, values, items * enable flake in constants.py * got rid of F401 in a Pythonic manner * coverage * reduced size of ParamStruct object * coverage * public public --> _public private * support immutable values; add physical constants * relax capitalized-only requirement * flake * coverage * added copy method * moved in separate module * expose CCLParameters * removed requirement for gsl_params and spline_params to be const at the C-level; makes the entire PR shorter and simpler * fix relative import * docstrings, frozen keys, reload option, tests * don't pickle swig spline types * singleton implementation moved under base class * implement get global na/nk sampling without cosmo; init Pk2D from pkfunc without cosmo * removed unnecessary test * new docstrings * option to call new funcs with or without cosmo * fix docs * updated warning in tracers.py * some minor improvements * updated readthedocs with new usage * fixed F401 * replace all swig lookups with python-level * clear up namespace & allow T_CMB changing * removed every trace of direct parameter assignment from code base * Refactor: direct interface with SWIG; deprecate direct assignment; no python-level copy; no singleton. * removed unecessary import * save spline and gsl params in cosmo * small improvement * tests to improve coverage * E303 * remove _type attribute * removed direct parameter assignment from benchmarks * reload frozen parameters (physical constants) * correct repr * verbose warning & added a test * no need to pass if docstring is provided * deprecation message Co-authored-by: David Alonso <[email protected]>
- Loading branch information
1 parent
6ebcd7c
commit 71f8d34
Showing
29 changed files
with
479 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.