Remove mention of OPENMC_DEPLETE_CHAIN in model.py

This commit is contained in:
Andrew Johnson 2019-06-13 19:06:07 -04:00
parent 0c0e591cb7
commit f1e930b8ba
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB
2 changed files with 4 additions and 3 deletions

View file

@ -68,7 +68,7 @@ class TransportOperator(metaclass=ABCMeta):
if chain_file is None:
data = DataLibrary.from_xml()
# search for depletion_chain path from end of list
for lib in data.libraries[::-1]:
for lib in reversed(data.libraries):
if lib['type'] == 'depletion_chain':
break
else:

View file

@ -133,8 +133,9 @@ class Model(object):
Array of timesteps in units of [s]. Note that values are not
cumulative.
chain_file : str, optional
Path to the depletion chain XML file. Defaults to the
:envvar:`OPENMC_DEPLETE_CHAIN` environment variable if it exists.
Path to the depletion chain XML file. Defaults to the chain
found under the ``depletion_chain`` in the
:envvar:`OPENMC_CROSS_SECITON` environment variable if it exists.
method : str
Integration method used for depletion (e.g., 'cecm', 'predictor')
**kwargs