Skip to content

Commit

Permalink
fixed tests long term
Browse files Browse the repository at this point in the history
  • Loading branch information
dodu94 committed Feb 8, 2025
1 parent 5dfef54 commit a1d8a9f
Show file tree
Hide file tree
Showing 22 changed files with 8,320 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/jade/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def run_benchmarks(self):
benchmark.run()
logging.info("Benchmarks run completed.")

def raw_process(self):
def raw_process(self, subset: list[str] | None = None):
"""Process the raw data from the simulations."""
logging.info("Processing raw data")
# first identify all simulations that were successful but were not processed
Expand All @@ -154,6 +154,8 @@ def raw_process(self):
to_process = {}
for code, lib, bench in successful:
if (code, lib, bench) not in self.status.raw_data:
if subset is not None and bench not in subset:
continue
# get the correspondent raw processor configuration
cfg_file = Path(root_cfg, f"{code.value}/{bench}.yaml")
raw_cfg = ConfigRawProcessor.from_yaml(cfg_file)
Expand Down
4 changes: 2 additions & 2 deletions tests/app/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_raw_process(self, tmpdir):
app.status.raw_results_path = tmpdir
app.status.update()

app.raw_process()
app.raw_process(subset=["Oktavian"])
# manually update the status
app.status.update()
filepath = Path(
Expand All @@ -41,7 +41,7 @@ def test_raw_process(self, tmpdir):
)
# now run again and test that nothing was overridden
initial_mod_time = os.path.getmtime(filepath)
app.raw_process()
app.raw_process(subset=["Oktavian"])
assert os.path.getmtime(filepath) == initial_mod_time

def test_post_process(self, tmpdir):
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Energy,Value,Error
0.01 - 0.1,0.0,
0.1 - 1,1.7438700460201333,0.007998630371237478
1 - 3.5,2.6122396702047537,0.0051684690987154214
3.5 - 10,1.7580168462166286,0.005711309579630808
10 - 20,17.96773790560683,0.0010480745251614464
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"benchmark_name": "Oktavian",
"benchmark_version": "1.0",
"jade_run_version": null,
"library": "ENDFB-VIII.0",
"code": "mcnp",
"jade_version": "3.1.1.dev180+g2fc4816.d20241216",
"code_version": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cells,Segments,Value,Error
2,1,0.0816484,0.0018
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"benchmark_name": "Sphere",
"benchmark_version": "1.0",
"jade_run_version": "3.1.1.dev181+g8162787",
"library": "ENDFB-VIII.0",
"code": "mcnp",
"jade_version": "3.1.1.dev181+g8162787",
"code_version": "6.2"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Code Name & Version = MCNP_6.20, 6.2.0

_/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/
_/_/ _/_/ _/ _/_/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/ _/ _/_/ _/ _/ _/
_/ _/ _/_/_/ _/ _/ _/ _/_/

+-----------------------------------------------------------------------+
| Copyright (2018). Los Alamos National Security, LLC. All rights !
| reserved. !
| This material was produced under U.S. Government contract !
| DE-AC52-06NA25396 for Los Alamos National Laboratory, which is !
| operated by Los Alamos National Security, LLC for the U.S. !
| Department of Energy. The Government is granted for itself and !
| others acting on its behalf a paid-up, nonexclusive, irrevocable !
| worldwide license in this material to reproduce, prepare derivative !
| works, and perform publicly and display publicly. Beginning five (5) !
| years after February 14, 2018, subject to additional five-year !
| worldwide renewals, the Government is granted for itself and others !
| acting on its behalf a paid-up, nonexclusive, irrevocable worldwide !
| license in this material to reproduce, prepare derivative works, !
| distribute copies to the public, perform publicly and display !
| publicly, and to permit others to do so. NEITHER THE UNITED STATES !
| NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR LOS ALAMOS NATIONAL !
| SECURITY, LLC, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY, !
| EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR RESPONSIBILITY !
| FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY INFORMATION, !
| APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE !
| WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS. !
+-----------------------------------------------------------------------+

1mcnp version 6 ld=02/20/18 03/06/21 10:57:13
************************************************************************* probid = 03/06/21 10:57:13
name=ITER_1D wwinp=wwinp tasks 20


comment. Physics models disabled.
1- ITER 1D
2- c -use endfb8.0 with ljj builds of mcnp6
3- c
4- c mcnp6.mpi n=inp173
5- c
6- c bohm edits
7- c -added ebin to f14 photon flux tally
8- c
9- c Cells section:
10- 1 0 -55 56 -1 imp:n,p=8388608
11- 2 13 7.2058e-002 -55 56 1 -60 imp:n,p=8388608
12- 3 13 7.2058e-002 -55 56 60 -61 imp:n,p=8388608
13- 4 13 7.2058e-002 -55 56 61 -62 imp:n,p=4194304
14- 5 13 7.2058e-002 -55 56 62 -63 imp:n,p=4194304
15- 6 13 7.2058e-002 -55 56 63 -64 imp:n,p=2097152
16- 7 13 7.2058e-002 -55 56 64 -65 imp:n,p=2097152
17- 8 13 7.2058e-002 -55 56 65 -66 imp:n,p=1048576
18- 9 13 7.2058e-002 -55 56 66 -67 imp:n,p=1048576
19- 10 13 7.2058e-002 -55 56 67 -68 imp:n,p=524288
20- 11 13 7.2058e-002 -55 56 68 -69 imp:n,p=524288
21- 12 13 7.2058e-002 -55 56 69 -70 imp:n,p=262144
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"benchmark_name": "Oktavian",
"benchmark_version": "1.0",
"jade_run_version": null,
"library": "FENDL 3.2c",
"code": "mcnp"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
Leakage from Al (40cm dia) sphere 3-d surface tally
c
1 0 ( -3 -8):(8 -1 -6) imp:n=1
2 2 -7.824 (3 -4 -8):(8 1 -2 -6) imp:n=1
3 1 -1.223 (4 -5 -8):(8 2 -5) imp:n=1
4 2 -7.824 (5 -6 -8):(8 2 5 -6) imp:n=1
5 0 6 -7 imp:n=1
6 0 7 imp:n=0

1 cx 5.55
2 cx 5.75
3 so 10.0
4 so 10.2
5 so 19.75
6 so 19.95
7 so 100.0
8 px 8.32

c
c Fraction Mass
c Expand
c Output MCNP
c Temp 293.16
c Density 5.75992
c #
c Composition 1
c Al 0.997 Si 0.0015 Fe 0.0020 Cu 0.0001
c
M1
13027.32c 9.975488E-1 $ Al-27 AB(%) 100.0
14028.32c 1.329808E-3 $ Si-28 AB(%) 92.23
14029.32c 6.752131E-5 $ Si-29 AB(%) 4.683
14030.32c 4.450956E-5 $ Si-30 AB(%) 3.087
26054.32c 5.651123E-5 $ Fe-54 AB(%) 5.845
26056.32c 8.871055E-4 $ Fe-56 AB(%) 91.754
26057.32c 2.048713E-5 $ Fe-57 AB(%) 2.119
26058.32c 2.726461E-6 $ Fe-58 AB(%) 0.282
29063.32c 2.938581E-5 $ Cu-63 AB(%) 69.17
29065.32c 1.309765E-5 $ Cu-65 AB(%) 30.83
c
M2
24050.32c -8.038250E-3 $ Cr-50 AB(%) 4.345
24052.32c -1.550100E-1 $ Cr-52 AB(%) 83.789
24053.32c -1.757680E-2 $ Cr-53 AB(%) 9.501
24054.32c -4.375250E-3 $ Cr-54 AB(%) 2.365
26054.32c -4.114880E-2 $ Fe-54 AB(%) 5.845
26056.32c -6.459480E-1 $ Fe-56 AB(%) 91.754
26057.32c -1.491780E-2 $ Fe-57 AB(%) 2.119
26058.32c -1.985280E-3 $ Fe-58 AB(%) 0.282
28058.32c -7.556550E-2 $ Ni-58 AB(%) 68.077
28060.32c -2.910750E-2 $ Ni-60 AB(%) 26.223
28061.32c -1.265400E-3 $ Ni-61 AB(%) 1.14
28062.32c -4.033740E-3 $ Ni-62 AB(%) 3.634
28064.32c -1.027860E-3 $ Ni-64 AB(%) 0.926
mode n p
sdef pos=0 0 0 cel=1 erg=d1
c nps 1e5
prdmp 2J -1 $ Flag to print the mctal
cut:n j 1e-3 0.01 $ Energy and weight cut-off
c
f21:n 6
f41:p 6
e21 0.10109 0.10521 0.10950 0.11397 0.11862 0.12347
0.12850 0.13375 0.13921 0.14489 0.15080 0.15696
0.16336 0.17003 0.17697 0.18419 0.19171 0.19953
0.20767 0.21615 0.22497 0.23415 0.24371 0.25365
0.26400 0.27478 0.28599 0.29766 0.30981 0.32245
0.33561 0.34931 0.36357 0.37840 0.39385 0.40992
0.42665 0.44406 0.46218 0.48105 0.50068 0.52111
0.54238 0.56451 0.58755 0.61153 0.63648 0.66246
0.68950 0.71763 0.74692 0.77740 0.80913 0.84215
0.87652 0.91229 0.94952 0.98827 1.02860 1.07060
1.11430 1.15980 1.20710 1.25630 1.30760 1.36100
1.41650 1.47430 1.53450 1.59710 1.66230 1.73010
1.80080 1.87420 1.95070 2.03030 2.11320 2.19940
2.28920 2.38260 2.47990 2.58110 2.68640 2.79600
2.91010 3.02890 3.15250 3.28120 3.41510 3.55450
3.69950 3.85050 4.00760 4.17120 4.34140 4.51860
4.70300 4.89490 5.09470 5.30260 5.51900 5.74430
5.97870 6.22270 6.47660 6.74100 7.01610 7.30240
7.60040 7.91060 8.23340 8.56940 8.91920 9.28320
9.66200 10.05600 10.46700 10.89400 11.33900 11.80100
12.28300 12.78400 13.30600 13.84900 14.41400 15.00200
15.61500 16.25200 16.91500 17.60500 18.32400 19.07200
19.85000 20.66000
e41 0.50000 0.60000 0.70000 0.80000 0.90000 1.00000
1.10000 1.20000 1.30000 1.40000 1.50000 1.60000
1.70000 1.80000 1.90000 2.00000 2.10000 2.20000
2.30000 2.40000 2.50000 2.60000 2.70000 2.80000
2.90000 3.00000 3.10000 3.20000 3.30000 3.40000
3.50000 3.60000 3.70000 3.80000 3.90000 4.00000
4.10000 4.20000 4.30000 4.40000 4.50000 4.60000
4.70000 4.80000 4.90000 5.00000 5.50000 6.00000
6.50000 7.00000 7.50000 8.00000 8.50000 9.00000
9.50000 10.00000 10.50000
c
# si1 sp1
0.10000 0.0
0.13644 3.00903e-05
0.15079 9.65131e-05
0.16665 2.80822e-05
0.18418 0.000306354
0.20355 0.000210096
0.22496 0.000205622
0.24862 0.000381712
0.27476 0.000300617
0.30366 0.00037554
0.33560 0.000512358
0.37089 0.000520925
0.40990 0.000630849
0.45301 0.000570806
0.50065 0.000734549
0.55331 0.000957807
0.61150 0.000969666
0.67581 0.00114997
0.74689 0.00129308
0.82544 0.00152998
0.91225 0.00162696
1.00820 0.00182414
1.11420 0.00178747
1.23140 0.0019783
1.36090 0.00194289
1.50400 0.00194365
1.66220 0.00201828
1.83700 0.00202883
2.03020 0.00211401
2.24380 0.00208776
2.47970 0.00213729
2.74050 0.00279908
3.02880 0.00349091
3.34730 0.00176878
3.69930 0.00182381
4.08840 0.00178018
4.51840 0.00164407
4.99360 0.00154299
5.51880 0.00140505
6.09920 0.00130596
6.74060 0.00137888
7.44960 0.00125414
8.23300 0.00135987
9.09890 0.00149605
10.05600 0.0019113
11.11300 0.00254563
12.28200 0.00464189
13.57400 0.0207244
15.00200 0.62147
16.57900 0.295462
18.32300 0.000602722
20.25000 1.92596e-05
c
STOP NPS 10000000
Loading

0 comments on commit a1d8a9f

Please sign in to comment.