Skip to content

Commit

Permalink
Mandd/e timporter issues (#501)
Browse files Browse the repository at this point in the history
* fixed tests

* edits

* edits

* edits

* edits

* edits

* edits

* edits

* edits

* edits

* edit

* edit

* edit
  • Loading branch information
mandd authored and alfoa committed Dec 21, 2017
1 parent 45189ee commit 1b6ebc9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions framework/PostProcessorFunctions/riskMeasuresDiscrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,12 @@ def runDynamic(self,inputDic,timeHistory):
outputDic['data'][var + '_' + measure] = np.zeros(len(timeHistory['data'][self.temporalID]))

previousSystemConfig = {}

for index,value in enumerate(timeHistory['data'][self.temporalID]):
for index,value in enumerate(timeHistory['data'][self.temporalID][0]):
systemConfig={}

# Retrieve the system configuration at time instant "index"
for var in timeHistory['data'].keys():
for var in timeHistory['outVars']:
if var != self.temporalID:
systemConfig[var] = timeHistory['data'][index]
systemConfig[var] = np.asarray(timeHistory['data'][var][0])[index]

# Do not repeat the calculation if the system configuration is identical to the one of previous time instant
if systemConfig == previousSystemConfig:
Expand Down

0 comments on commit 1b6ebc9

Please sign in to comment.