Skip to content

Commit 2e880c8

Browse files
authored
Merge pull request #842 from idaholab/alpha-test-checkvalue
Implemented automated Type and Value Checking
2 parents 75f80ee + 84ba07e commit 2e880c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2600
-1018
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI testing
22

33
on:
44
pull_request:
5-
branches: [develop, alpha-test-dev, alpha-test, minor-rel-dev]
5+
branches: ["*dev*", alpha-test*]
66
push:
7-
branches: [develop, main, alpha-test, minor-rel-dev]
7+
branches: ["*dev*", main, alpha-test*]
88

99
jobs:
1010
build:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ doc/build/*
2121
.coverage
2222
.hypothesis/
2323
.idea/
24+
.vscode/
2425
.venv/
2526
.ipynb_checkpoints/
2627
montepy/_version.py

LICENSE

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,33 @@ copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM,
20+
OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+
23+
##############################################################################
24+
Code from checkvalue.py from OpenMC was incorporated into montepy._check_value.py,
25+
and is licensed by the following:
26+
###############################################################################
27+
28+
Copyright (c) 2014-2025 Massachusetts Institute of Technology, UChicago Argonne
29+
LLC, and OpenMC contributors
30+
31+
Permission is hereby granted, free of charge, to any person obtaining a copy of
32+
this software and associated documentation files (the "Software"), to deal in
33+
the Software without restriction, including without limitation the rights to
34+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
35+
the Software, and to permit persons to whom the Software is furnished to do so,
36+
subject to the following conditions:
37+
38+
The above copyright notice and this permission notice shall be included in all
39+
copies or substantial portions of the Software.
40+
41+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
43+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
44+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
45+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
46+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

benchmark/benchmark_big_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import montepy
99

10-
FAIL_THRESHOLD = 40
10+
FAIL_THRESHOLD = 90
1111
MEMORY_FRACTION = 0.50
1212

1313
starting_mem = tracemalloc.get_traced_memory()[0]

doc/source/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LICENSE

doc/source/api/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

doc/source/api/modules.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@ Universal Utilities and constants
171171
.. toctree::
172172
:maxdepth: 1
173173

174+
montepy._check_value
174175
montepy.constants
175176
montepy.exceptions
176177
montepy.utilities
178+
montepy.types
177179

178180

179181
Object Builders
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
montepy._check_value module
2+
===========================
3+
4+
5+
.. automodule:: montepy._check_value
6+
:members:
7+
:inherited-members:
8+
:undoc-members:
9+
:show-inheritance:

doc/source/api/montepy.types.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
montepy.types module
2+
====================
3+
4+
5+
.. automodule:: montepy.types
6+
:members:
7+
:inherited-members:
8+
:undoc-members:
9+
:show-inheritance:
10+
:private-members:

doc/source/api/montepy.utilities.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ montepy.utilities module
55
.. automodule:: montepy.utilities
66
:members:
77
:inherited-members:
8+
:imported-members:
9+
:exclude-members: Integral, Iterable, Real, Callable
810
:undoc-members:
911
:show-inheritance:

0 commit comments

Comments
 (0)