-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read non-linear power spectrum from input (#757)
* First step to input distance * Added function to read input chi of z * Added input E(a) and computing a(chi) from input chi(a) * Input arrays depend on scale factor. Removed flake8 warnings. Creating new reversed arrays instead of changing old ones. * Syntax error fixes * Added unit test * Allow input growth factor and growth rate. Unit test created. * Added unit test for ValueError raises. Dynamic allocation of reversed arrays in C script. * Check all input arrays are parsed, with unit test. Clean TODOs and finish documentation. * Flake8 successfully run. * Creating new function set_background_from_arrays to avoid extra keyword arguments on the Cosmology call. The background_on_input is now set to False initially and converted to True once this new function is called successfully. * Building input for linear power spectrum * Towards input linear power spectrum * Changing set_background_from_arrays to _set_background_from_arrays and tests accordingly. * Changed background_on_input to _background_on_input * Adjust range of input a,k arrays. Write unit test. * Remove white line * Linear power spectrum from input stored from existing 2d spline. Added transfer function option for when power spectrum is to be input by the user. * Fixing travis error. * Fixing travis error. * Fixing travis * Parsing input non-linear power spectrum * Merge from LSSTDESC-CCL * Docstring and small changes * Unit test for raises due to input linear power spectrum part of core.py. * Small fix. * Unit tests for nonlin power from input. * Trimming and moving linpower raises test to test_power. * Making pknl_from_input not part of the public API. * Trimming and updating error message. * rename Co-authored-by: David Alonso <dam.phys@gmail.com>
- Loading branch information
1 parent
60704b5
commit ee239c5
Showing
4 changed files
with
125 additions
and
5 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