From f1e930b8bab460fa879b63df6a198f3db54fc2bb Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 13 Jun 2019 19:06:07 -0400 Subject: [PATCH] Remove mention of OPENMC_DEPLETE_CHAIN in model.py --- openmc/deplete/abc.py | 2 +- openmc/model/model.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openmc/deplete/abc.py b/openmc/deplete/abc.py index 226877c149..2e598fb74a 100644 --- a/openmc/deplete/abc.py +++ b/openmc/deplete/abc.py @@ -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: diff --git a/openmc/model/model.py b/openmc/model/model.py index cf6603638e..bdd35079d4 100644 --- a/openmc/model/model.py +++ b/openmc/model/model.py @@ -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