Skip to content

Commit 7fe54f8

Browse files
committed
Fix Clustered and Interpolated Tests
1 parent b419e43 commit 7fe54f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ravenframework/TSA/TSAUser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,23 @@ def __init__(self):
6666
self._tsaPivotName = None # name of time-like pivot parameter
6767
self._tsaPivotVals = None # pivot values for the TSA signals
6868

69+
# We need these for clustered and interpolated ROMS
70+
self.pivotParameterID = None # string name for time-like pivot parameter # TODO base class?
71+
self.pivotParameterValues = None # values for the time-like pivot parameter # TODO base class?
72+
6973
def readTSAInput(self, spec):
7074
"""
7175
Read in TSA algorithms
7276
@ In, spec, InputData.parameterInput, input specs filled with user entries
7377
@ Out, None
7478
"""
75-
if hasattr(self, 'pivotParameterID'): # might be handled by parent
79+
if hasattr(self, 'pivotParameterID') and self.pivotParameterID is not None: # might be handled by parent
7680
self._tsaPivotName = self.pivotParameterID
7781
else:
7882
pivotParamNode = spec.findFirst('pivotParameter')
7983
if pivotParamNode is not None:
8084
self._tsaPivotName = pivotParamNode.value
85+
self.pivotParameterID = pivotParamNode.value
8186

8287
for sub in spec.subparts:
8388
if sub.name in factory.knownTypes():

0 commit comments

Comments
 (0)