diff --git a/bluepyopt/ephys/objectives.py b/bluepyopt/ephys/objectives.py index 7df442a5..e5b12848 100644 --- a/bluepyopt/ephys/objectives.py +++ b/bluepyopt/ephys/objectives.py @@ -87,7 +87,7 @@ def __str__(self): return '( %s )' % self.features[0] -class SingletonWeightObjective(EFeatureObjective): +class SingletonWeightObjective(SingletonObjective): """Single EPhys feature""" @@ -99,7 +99,7 @@ def __init__(self, name, feature, weight): weight (float): weight to scale to the efeature with """ - super(SingletonWeightObjective, self).__init__(name, [feature]) + super(SingletonWeightObjective, self).__init__(name, feature) self.weight = weight def calculate_score(self, responses):