Skip to content

Commit

Permalink
Merge 000d28c into 5576635
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebbychadnezzar authored Sep 13, 2022
2 parents 5576635 + 000d28c commit ed8eaa1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion armi/physics/neutronics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def blueprintsHasOldXSInput(path):

@staticmethod
@plugins.HOOKIMPL
def onProcessCoreLoading(core, cs):
def onProcessCoreLoading(core, cs, dbLoad):
applyEffectiveDelayedNeutronFractionToCore(core, cs)

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion armi/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def afterConstructionOfAssemblies(assemblies, cs) -> None:

@staticmethod
@HOOKSPEC
def onProcessCoreLoading(core, cs) -> None:
def onProcessCoreLoading(core, cs, dbLoad) -> None:
"""
Function to call whenever a Core object is newly built.
Expand Down
2 changes: 1 addition & 1 deletion armi/reactor/reactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ def processLoading(self, cs, dbLoad: bool = False):

self.p.maxAssemNum = self.getMaxParam("assemNum")

getPluginManagerOrFail().hook.onProcessCoreLoading(core=self, cs=cs)
getPluginManagerOrFail().hook.onProcessCoreLoading(core=self, cs=cs, dbLoad=dbLoad)

def _applyThermalExpansion(
self, assems: list, dbLoad: bool, referenceAssembly=None
Expand Down
2 changes: 1 addition & 1 deletion armi/tests/test_user_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class UserPluginOnProcessCoreLoading(plugins.UserPlugin):

@staticmethod
@plugins.HOOKIMPL
def onProcessCoreLoading(core, cs):
def onProcessCoreLoading(core, cs, dbLoad):
blocks = core.getBlocks(Flags.FUEL)
for b in blocks:
b.p.height += 1.0
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorials/making_your_first_app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ This can be done by sublassing :py:class:`armi.plugins.UserPlugin`:
@staticmethod
@plugins.HOOKIMPL
def onProcessCoreLoading(core, cs):
def onProcessCoreLoading(core, cs, dbLoad=False):
for b in core.getBlocks(Flags.FUEL):
b.p.power += 1.0
Expand Down

0 comments on commit ed8eaa1

Please sign in to comment.