Skip to content

Commit

Permalink
Fixing an issue in BS that affected the test /tests/framework/user_gu…
Browse files Browse the repository at this point in the history
…ide/raven_tutorial/PostProcess.xml
  • Loading branch information
Jimmy-INL committed Sep 7, 2022
1 parent 52d3ded commit dc19f37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ravenframework/Models/PostProcessors/BasicStatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ def initialize(self, runInfo, inputs, initDict):
"""
if len(inputs)>1:
self.raiseAnError(IOError, 'Post-Processor', self.name, 'accepts only one DataObject')
if self.pivotParameter is not None:
if not inputs[-1].checkIndexAlignment(indexesToCheck=self.pivotParameter):
self.raiseAnError(IOError, "The data provided by the input data object is not synchronized!")
self.inputDataObjectName = inputs[-1].name
#construct a list of all the parameters that have requested values into self.allUsedParams
self.allUsedParams = set()
Expand All @@ -245,6 +242,8 @@ def initialize(self, runInfo, inputs, initDict):
inputObj = inputs[-1] if type(inputs) == list else inputs
if inputObj.type == 'HistorySet':
self.dynamic = True
if not inputObj.checkIndexAlignment(indexesToCheck=self.pivotParameter):
self.raiseAnError(IOError, "The data provided by the input data object is not synchronized!")
inputMetaKeys = []
outputMetaKeys = []
for metric, infos in self.toDo.items():
Expand Down

0 comments on commit dc19f37

Please sign in to comment.