|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
Functions | |
| def | reference_models () |
| def | reference_models_nu () |
| def | all_finite (vals) |
| def | check_background (cosmo) |
| def | check_background_nu (cosmo) |
| def | check_power (cosmo) |
| def | check_massfunc (cosmo) |
| def | check_massfunc_nu (cosmo) |
| def | check_halomod (cosmo) |
| def | check_neutrinos () |
| def | check_redshifts (cosmo) |
| def | check_cls (cosmo) |
| def | check_cls_nu (cosmo) |
| def | check_corr (cosmo) |
| def | check_corr_3d (cosmo) |
| def | test_valid_transfer_combos () |
| def | test_background () |
| def | test_power () |
| def | test_massfunc () |
| def | test_halomod () |
| def | test_neutrinos () |
| def | test_redshifts () |
| def | test_cls () |
| def | test_corr () |
| def | test_debug_mode () |
| def ccl_test_pyccl_interface.all_finite | ( | vals | ) |
Returns True if all elements are finite (i.e. not NaN or inf).
Definition at line 84 of file ccl_test_pyccl_interface.py.
Referenced by check_background(), check_background_nu(), check_cls(), check_cls_nu(), check_corr(), check_corr_3d(), check_halomod(), check_massfunc(), check_massfunc_nu(), check_neutrinos(), check_power(), and check_redshifts().
| def ccl_test_pyccl_interface.check_background | ( | cosmo | ) |
Check that background and growth functions can be run.
Definition at line 90 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_background_nu | ( | cosmo | ) |
Check that background functions can be run and that the growth functions exit gracefully in functions with massive neutrinos (not implemented yet).
Definition at line 167 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_cls | ( | cosmo | ) |
Check that cls functions can be run.
Definition at line 510 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_cls_nu | ( | cosmo | ) |
Check that cls functions can be run.
Definition at line 579 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_corr | ( | cosmo | ) |
| def ccl_test_pyccl_interface.check_corr_3d | ( | cosmo | ) |
Definition at line 687 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_halomod | ( | cosmo | ) |
Check that halo model functions can be run.
Definition at line 353 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_massfunc | ( | cosmo | ) |
Check that mass function and supporting functions can be run.
Definition at line 268 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_massfunc_nu | ( | cosmo | ) |
Check that mass function and supporting functions can be run.
Definition at line 315 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_neutrinos | ( | ) |
Check that neutrino-related functions can be run.
Definition at line 403 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_power | ( | cosmo | ) |
Check that power spectrum and sigma functions can be run.
Definition at line 218 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.check_redshifts | ( | cosmo | ) |
Check that redshift functions can be run and produce finite values.
Definition at line 443 of file ccl_test_pyccl_interface.py.
References all_finite().
| def ccl_test_pyccl_interface.reference_models | ( | ) |
Create a set of reference Cosmology() objects.
Definition at line 7 of file ccl_test_pyccl_interface.py.
Referenced by test_background(), test_cls(), test_corr(), test_halomod(), test_massfunc(), test_power(), and test_redshifts().
| def ccl_test_pyccl_interface.reference_models_nu | ( | ) |
Create a set of reference cosmological models with massive neutrinos. This is separate because certain functionality is not yes implemented for massive neutrino cosmologies so will throw errors.
Definition at line 62 of file ccl_test_pyccl_interface.py.
Referenced by test_background(), test_cls(), test_corr(), test_massfunc(), test_power(), and test_redshifts().
| def ccl_test_pyccl_interface.test_background | ( | ) |
Test background and growth functions in ccl.background.
Definition at line 722 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_cls | ( | ) |
Test top-level functions in pyccl.cls module.
Definition at line 778 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_corr | ( | ) |
Test top-level functions in pyccl.correlation module.
Definition at line 788 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_debug_mode | ( | ) |
Test that debug mode can be toggled.
Definition at line 804 of file ccl_test_pyccl_interface.py.
| def ccl_test_pyccl_interface.test_halomod | ( | ) |
Test halo model and supporting functions.
Definition at line 753 of file ccl_test_pyccl_interface.py.
References reference_models().
| def ccl_test_pyccl_interface.test_massfunc | ( | ) |
Test mass function and supporting functions.
Definition at line 743 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_neutrinos | ( | ) |
Test neutrino-related functions.
Definition at line 761 of file ccl_test_pyccl_interface.py.
| def ccl_test_pyccl_interface.test_power | ( | ) |
Test power spectrum and sigma functions in ccl.power.
Definition at line 732 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_redshifts | ( | ) |
Test redshifts module.
Definition at line 767 of file ccl_test_pyccl_interface.py.
References reference_models(), and reference_models_nu().
| def ccl_test_pyccl_interface.test_valid_transfer_combos | ( | ) |
Check that invalid transfer_function <-> matter_power_spectrum pairs raise an error.
Definition at line 707 of file ccl_test_pyccl_interface.py.