Skip to content

Commit

Permalink
Allow get_microxs_and_flux to use OPENMC_CHAIN_FILE environment varia…
Browse files Browse the repository at this point in the history
…ble (#2934)
  • Loading branch information
eepeterson committed Apr 5, 2024
1 parent cc848ef commit 0aad22d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openmc/deplete/microxs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@


def _resolve_chain_file_path(chain_file: str):
# Determine what reactions and nuclides are available in chain
if chain_file is None:
chain_file = openmc.config.get('chain_file')
if 'chain_file' in openmc.config:
if 'chain_file' not in openmc.config:
raise DataError(
"No depletion chain specified and could not find depletion "
"chain in openmc.config['chain_file']"
Expand Down

0 comments on commit 0aad22d

Please sign in to comment.