Commit graph

7602 commits

Author SHA1 Message Date
Sterling Harper
e13c60ed41 Fill in C++ RectLattice constructor 2018-02-07 12:24:25 -05:00
Adam Nelson
7d4cc0094e Fixing further misidentations 2018-02-06 19:33:58 -05:00
Adam Nelson
db5d603e29 Merge remote-tracking branch 'upstream/develop' into nuclide_xs 2018-02-06 19:32:33 -05:00
Adam Nelson
ddc60ec6f0 Inelastic scattering index list 2018-02-06 19:27:39 -05:00
Sterling Harper
4cff8d92fb
Merge pull request #965 from paulromano/python3
Drop support for Python 2
2018-02-06 15:07:57 -05:00
Paul Romano
848305b8d3 Skip multipole-related tests if OPENMC_MULTIPOLE_LIBRARY is not set 2018-02-06 13:27:01 -05:00
Paul Romano
b7c63be018 Use super() in Python classes in tests package 2018-02-06 13:14:17 -05:00
Paul Romano
59861c9507 No need to call int(floor(...)) in Python 3 2018-02-06 07:35:45 -05:00
Paul Romano
cba083103c Use default argument of max() in capi bindings 2018-02-06 07:29:39 -05:00
Paul Romano
b053e05415 Remove try/except for importing unittest.mock 2018-02-06 07:25:21 -05:00
Paul Romano
19ddb532bc Remove check for Python 2.7 in travis-install 2018-02-06 06:53:43 -05:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
0aee52c5ab Remove deprecated methods 2018-02-05 23:14:30 -05:00
Paul Romano
7263d80c2c Update installation instructions 2018-02-05 23:14:30 -05:00
Paul Romano
deab4b3d33 Use empty-argument form of super() 2018-02-05 23:14:30 -05:00
Paul Romano
1ccf6c3e5e Use tempfile.TemporaryDirectory() 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Sterling Harper
2d73fd76ea
Merge pull request #964 from paulromano/unit-tests
Expand unit test suite and report coverage
2018-02-05 18:08:30 -05:00
Paul Romano
36244692fd Use mpicc and mpicxx for MPI configurations 2018-02-05 08:09:47 -06:00
Paul Romano
c710184fba Run tests from root directory 2018-02-05 07:35:48 -06:00
Paul Romano
bc4c7d9372 Add option in openmc.Settings for log_grid_bins (and remove DD) 2018-02-05 07:35:48 -06:00
Paul Romano
6044edc24a Add simple test for openmc.Settings 2018-02-05 07:35:48 -06:00
Paul Romano
d458561576 Upload test coverage results to coveralls 2018-02-05 07:35:48 -06:00
Paul Romano
68a01b8fc1 Explicitly use int(floor(...)) for Python 2 compatibility 2018-02-05 07:35:48 -06:00
Paul Romano
2027920fdd Add unit tests for openmc.RectLattice and openmc.HexLattice 2018-02-05 07:35:48 -06:00
Paul Romano
07d853dd1d Allow tests that require GUI (matplotlib) 2018-02-05 07:35:48 -06:00
Paul Romano
ef16a6cb57 Fix bug in stochastic volume calculation with void cell 2018-02-05 07:35:48 -06:00
Paul Romano
b9ae596200 Add tests for openmc.Geometry and remove __eq__ on openmc.Lattice 2018-02-05 07:35:48 -06:00
Paul Romano
347243876f Combine volume calculations into a single unit test 2018-02-05 07:35:48 -06:00
Paul Romano
1a93883b67 Add tests for openmc.Universe 2018-02-05 07:35:48 -06:00
Paul Romano
b573ad50cf Add test for Region.from_expression 2018-02-05 07:35:48 -06:00
Paul Romano
bf8c556b5a Unit tests for openmc.Cell 2018-02-05 07:35:48 -06:00
Paul Romano
ebd4f72b40 Update installation instructions for Python API 2018-02-05 07:35:48 -06:00
Paul Romano
f6fc24c808 Add unit tests for plots 2018-02-05 07:35:48 -06:00
Paul Romano
4ad4feecc6 Update minimum CMake version to 3.0 2018-02-05 07:35:48 -06:00
Paul Romano
54cd34f33e Install Python package in editable mode once again 2018-02-05 07:35:48 -06:00
Paul Romano
d75b715026 Add source tests and fix one failing test 2018-02-05 07:35:48 -06:00
Paul Romano
18695c2878 Don't install Python package from CMakeLists.txt 2018-02-05 07:35:48 -06:00
Paul Romano
6090994545 Make sure IPython<6 is used for Python 2.7 2018-02-05 07:35:48 -06:00
Paul Romano
fe353aff40 Update documentation relating to test suite 2018-02-05 07:35:48 -06:00
Paul Romano
dd2415d350 Make sure non-PHDF5 builds turn off prefer_parallel 2018-02-05 07:35:47 -06:00
Paul Romano
ea15a93104 Remove use of ctest / update_results.py 2018-02-05 07:35:45 -06:00
Paul Romano
0d3845c327 Fix command-line arguments for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
740f03fce1 Use single package-level fixture for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
73947ad7de Reset IDs for tests that instantiate models directly 2018-02-05 07:35:19 -06:00
Paul Romano
98d5496102 Ability to run regression tests using pytest 2018-02-05 07:35:19 -06:00
Paul Romano
72aebfccf2 Fix subtle bug with next_id not getting reset for autogenerated IDs 2018-02-05 07:35:19 -06:00
Paul Romano
920afa123e Make tests directory a package (for pytest) 2018-02-05 07:35:19 -06:00
Paul Romano
c3af1c915b Move regression tests into separate directory 2018-02-05 07:35:19 -06:00
Paul Romano
39cd77a756 Have Travis install OpenMC during install step and have script call ctest 2018-02-05 07:35:19 -06:00