Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
run_tests.py
Go to the documentation of this file.
1
from
numpy.testing
import
run_module_suite
2
import
sys
3
4
# Per-module accuracy, input correctness, and unit tests
5
from
ccl_test_distances
import
*
6
from
ccl_test_growth
import
*
7
from
ccl_test_core
import
*
8
from
ccl_test_power
import
*
9
from
ccl_test_cclerror
import
*
10
11
# Overall interface functionality tests
12
from
ccl_test_pyccl_interface
import
*
13
from
ccl_test_swig_interface
import
*
14
15
if
__name__ ==
"__main__"
:
16
# Run tests
17
args = sys.argv
18
19
# If no args were specified, add arg to only do non-slow tests
20
if
len(args) == 1:
21
print(
"Running tests that are not tagged as 'slow'. "
22
"Use '--all' to run all tests."
)
23
args.append(
"-a!slow"
)
24
run_module_suite(argv=args)
src
3party
CCL
tests
run_tests.py
Generated by
1.8.11