Change OPENDEPLETE_CHAIN -> OPENMC_DEPLETE_CHAIN

This commit is contained in:
Paul Romano 2018-02-19 10:24:10 -06:00
parent 4e21e398c8
commit ea335e0696
3 changed files with 7 additions and 7 deletions

View file

@ -23,8 +23,8 @@ class Settings(object):
output_dir : pathlib.Path
Path to output directory to save results.
chain_file : str
Path to the depletion chain xml file. Defaults to the
:envvar:`OPENDEPLETE_CHAIN` environment variable if it exists.
Path to the depletion chain XML file. Defaults to the
:envvar:`OPENMC_DEPLETE_CHAIN` environment variable if it exists.
dilute_initial : float
Initial atom density to add for nuclides that are zero in initial
condition to ensure they exist in the decay chain. Only done for
@ -37,7 +37,7 @@ class Settings(object):
"""
def __init__(self):
try:
self.chain_file = os.environ["OPENDEPLETE_CHAIN"]
self.chain_file = os.environ["OPENMC_DEPLETE_CHAIN"]
except KeyError:
self.chain_file = None
self.dt_vec = None

View file

@ -332,9 +332,9 @@ class Chain(object):
root = ET.parse(filename)
except Exception:
if filename is None:
print("No chain specified, either manually or in environment variable OPENDEPLETE_CHAIN.")
print("No chain specified, either manually or in environment variable OPENMC_DEPLETE_CHAIN.")
else:
print('Decay chain "', filename, '" is invalid.')
print('Decay chain "{}" is invalid.'.format(filename))
raise
for i, nuclide_elem in enumerate(root.findall('nuclide_table')):

View file

@ -51,8 +51,8 @@ class OpenMCSettings(Settings):
output_dir : pathlib.Path
Path to output directory to save results.
chain_file : str
Path to the depletion chain xml file. Defaults to the
:envvar:`OPENDEPLETE_CHAIN` environment variable if it exists.
Path to the depletion chain XML file. Defaults to the
:envvar:`OPENMC_DEPLETE_CHAIN` environment variable if it exists.
dilute_initial : float
Initial atom density to add for nuclides that are zero in initial
condition to ensure they exist in the decay chain. Only done for