Skip to content

Commit

Permalink
Add @samgdotson suggestions.
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Dotson <[email protected]>
  • Loading branch information
yardasol and samgdotson committed Dec 5, 2022
2 parents ae1a740 + 4a49c11 commit 647a1d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions saltproc/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,15 @@ def _print_simulation_input_info(simulation_input, depcode_input):

def _create_depcode_object(depcode_input):
"""Helper function for `run()` """
codename = depcode_input['codename']
codename = depcode_input['codename'].lower()
if codename == 'serpent':
depcode = SerpentDepcode
elif codename == 'openmc':
depcode = OpenMCDepcode
else:
raise ValueError(
f'{depcode_input["codename"]} is not a supported depletion code')
f'{codename} is not a supported depletion code.'
'Accepts: "serpent" or "openmc".')

depcode = depcode(depcode_input['output_path'],
depcode_input['exec_path'],
Expand Down

0 comments on commit 647a1d1

Please sign in to comment.