From 4669c7994ffe75f753546b0266d3efa2ce55918e Mon Sep 17 00:00:00 2001 From: Ethan Peterson Date: Tue, 2 Apr 2024 19:57:24 -0400 Subject: [PATCH] allow for OPENMC_CHAIN_FILE to be used by get_microxs_and_flux --- openmc/deplete/microxs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/deplete/microxs.py b/openmc/deplete/microxs.py index 0721535ca4f..c1c4cb7acf4 100644 --- a/openmc/deplete/microxs.py +++ b/openmc/deplete/microxs.py @@ -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']"