Skip to content

Commit

Permalink
Removing deprecated Database3.load() param (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Oct 16, 2023
1 parent 29652f3 commit d3afb25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions armi/bookkeeping/db/database3.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ def load(
bp=None,
statePointName=None,
allowMissing=False,
updateGlobalAssemNum=True,
):
"""Load a new reactor from (cycle, node).
Expand All @@ -676,8 +675,6 @@ def load(
allowMissing : bool, optional
Whether to emit a warning, rather than crash if reading a database
with undefined parameters. Default False.
updateGlobalAssemNum : bool, optional
DeprecationWarning: This is unused.
Returns
-------
Expand Down Expand Up @@ -719,12 +716,6 @@ def load(
)
root = comps[0][0]

if updateGlobalAssemNum:
runLog.warning(
"The method input `updateGlobalAssemNum` is no longer used.",
single=True,
)

# return a Reactor object
if cs[CONF_SORT_REACTOR]:
root.sort()
Expand Down
5 changes: 1 addition & 4 deletions armi/bookkeeping/db/databaseInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,7 @@ def _getLoadDB(self, fileName):
if os.path.exists(self.cs["reloadDBName"]):
yield Database3(self.cs["reloadDBName"], "r")

def loadState(
self, cycle, timeNode, timeStepName="", fileName=None, updateGlobalAssemNum=True
):
def loadState(self, cycle, timeNode, timeStepName="", fileName=None):
"""
Loads a fresh reactor and applies it to the Operator.
Expand All @@ -329,7 +327,6 @@ def loadState(
statePointName=timeStepName,
cs=self.cs,
allowMissing=True,
updateGlobalAssemNum=updateGlobalAssemNum,
)
self.o.reattach(newR, self.cs)
break
Expand Down

0 comments on commit d3afb25

Please sign in to comment.