Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion saltproc/openmc_depcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self,
if exec_path == "openmc_deplete.py":
exec_path = (Path(__file__).parents[0] / exec_path).resolve()
else:
exec_path == (Path(template_input_file_path['settings'].parents[0]) / exec_path).resolve()
exec_path = (Path(template_input_file_path['settings'].parents[0]) / exec_path).resolve()

self.depletion_settings = depletion_settings
self.chain_file_path = chain_file_path
Expand Down
4 changes: 2 additions & 2 deletions saltproc/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def _collect_material_comp(self, material):
len(material.after_reproc.comp))
material_comp = np.empty(arr_dim)
for nuc in nucs:
nuc_comp_br = material.before_reproc.comp[:, nuc_map[nuc]]
nuc_comp_ar = material.after_reproc.comp[:, nuc_map[nuc]]
nuc_comp_br = material.before_reproc.comp[:, nuc_map[nuc]].tolist()
nuc_comp_ar = material.after_reproc.comp[:, nuc_map[nuc]].tolist()
nuc_comp_0 = nuc_comp_br.pop(0)
nuc_comp = []
for c1, c2 in zip(nuc_comp_br, nuc_comp_ar):
Expand Down
2 changes: 2 additions & 0 deletions saltproc/serpent_depcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def _zam_to_nuclide_code(self, Z, a, m):
nuc_code = 95642
else:
nuc_code = 95242
else:
nuc_code += a
return nuc_code


Expand Down