Skip to content

Commit 92ef23a

Browse files
authored
Merge pull request #1 from nplinden/fix_jeff33
fix jeff33 chain generation
2 parents 5319b33 + 3b14382 commit 92ef23a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/openmc_data/depletion/generate_jeff_chain.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@ def main():
5656

5757
neutron_files = list(neutron_dir.rglob("*.jeff33"))
5858
decay_files = list(decay_dir.rglob("*.ASC"))
59-
fpy_files = list(nfy_dir.rglob("*.asc"))
59+
60+
nfy_file = download_path / all_decay_release_details[library_name][args.release]["nfy"]["compressed_files"][0]
61+
assert nfy_file.suffix == ".asc"
62+
fixed_nfy_file = nfy_file.parent / (nfy_file.stem + "-fixed.asc")
63+
64+
with open(nfy_file, "r") as original:
65+
with open(fixed_nfy_file, "w") as fixed:
66+
fixed.write(" " * 70 + " 1 0 0\n")
67+
fixed.write(original.read())
68+
69+
fpy_files = [fixed_nfy_file]
6070

6171
# check files exist
6272
for flist, ftype in [(decay_files, "decay"), (neutron_files, "neutron"),

0 commit comments

Comments
 (0)