mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fix openmc.config when OPENMC_CROSS_SECTIONS is not set
This commit is contained in:
parent
35930e0422
commit
a7abe84b38
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def _default_config():
|
|||
# Set depletion chain
|
||||
chain_file = os.environ.get("OPENMC_CHAIN_FILE")
|
||||
if (chain_file is None and
|
||||
config['cross_sections'] is not None and
|
||||
config.get('cross_sections') is not None and
|
||||
config['cross_sections'].exists()
|
||||
):
|
||||
# Check for depletion chain in cross_sections.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue