Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-07-07 21:00:48 +02:00
parent a524250dee
commit b3a85b20d8

View File

@@ -611,9 +611,12 @@ def handle_calctrimp(id,
v4mean = wavg(df,'v4','deltat')
normv = v4mean**(1./pp)
df['w4'] = df['driveenergy']**(pp)
w4mean = wavg(df,'w4','deltat')
normw = w4mean**(1./pp)
try:
df['w4'] = df['driveenergy']**(pp)
w4mean = wavg(df,'w4','deltat')
normw = w4mean**(1./pp)
except KeyError:
normw = 0
if np.isnan(normv):