From dc19f37a0aec84ebea71951422b771b2e2041988 Mon Sep 17 00:00:00 2001 From: Jimmy-INL Date: Wed, 7 Sep 2022 11:40:46 -0600 Subject: [PATCH] Fixing an issue in BS that affected the test /tests/framework/user_guide/raven_tutorial/PostProcess.xml --- ravenframework/Models/PostProcessors/BasicStatistics.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ravenframework/Models/PostProcessors/BasicStatistics.py b/ravenframework/Models/PostProcessors/BasicStatistics.py index b08a0f556e..c8466ee767 100644 --- a/ravenframework/Models/PostProcessors/BasicStatistics.py +++ b/ravenframework/Models/PostProcessors/BasicStatistics.py @@ -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() @@ -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():