Skip to content

Commit cfba320

Browse files
authored
Merge pull request #477 from JADE-V-V/fix-f4enix-v0.18-compatibility
fix new f4enix behaviour
2 parents 7ba1fd9 + 36f50a7 commit cfba320

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
"matplotlib",
2323
"aspose-words",
2424
"requests",
25-
"f4enix >= 0.15.0",
25+
"f4enix >= 0.18.0",
2626
"pyyaml",
2727
"seaborn",
2828
"python-gitlab"

src/jade/run/input.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from f4enix.input.materials import MatCardsList, Material, SubMaterial, Zaid
1313
from f4enix.input.MCNPinput import D1S_Input
1414
from f4enix.input.MCNPinput import Input as MCNPInput
15+
from f4enix.input.irradiation import Nuclide
1516

1617
from jade.config.run_config import Library, LibraryD1S, LibraryMCNP
1718
from jade.helper.__optionals__ import OMC_AVAIL
@@ -459,7 +460,11 @@ def __init__(
459460
assert daughter is not None
460461
self.inp.irrad_file.select_daughters_irradiation_file([daughter])
461462
# generate the reaction file with only the specific MT
462-
reaction = Reaction(f"{zaid}.{lib.suffix}", MT, daughter)
463+
reaction = Reaction(
464+
Nuclide.from_int_string(f"{zaid}.{lib.suffix}"),
465+
MT,
466+
Nuclide.from_int_string(f"{daughter}.{lib.suffix}"),
467+
)
463468
reacfile = ReactionFile([reaction])
464469
self.inp.reac_file = reacfile
465470
# also the name needs to be updated

0 commit comments

Comments
 (0)