formula in newDelta
@@ -83,8 +83,9 @@ class Experiment(ExperimentData):
for dk in derivedKpis:
name = dk['name']
- self.kpis.loc[:, name] = eval(re.sub(pattern, r'self.kpis.\1.astype(float)', dk['formula']))
- referenceKpis[name] = re.sub(pattern + '/', '', dk['formula'])
+ formula = dk['formula']
+ self.kpis.loc[:, name] = eval(re.sub(pattern, r'self.kpis.\1.astype(float)', formula))
+ referenceKpis[name] = re.sub(pattern + '/', '', formula)
deltaWorker = statx.make_delta(**deltaWorkerArgs)
methodTable = {
