Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 6679d3c

Browse files
Merge pull request #487 from BlueBrain/weight-opt
make SingletonWeightObjective a child of SingletonObjective
2 parents 6fddc82 + 90da854 commit 6679d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bluepyopt/ephys/objectives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __str__(self):
8787
return '( %s )' % self.features[0]
8888

8989

90-
class SingletonWeightObjective(EFeatureObjective):
90+
class SingletonWeightObjective(SingletonObjective):
9191

9292
"""Single EPhys feature"""
9393

@@ -99,7 +99,7 @@ def __init__(self, name, feature, weight):
9999
weight (float): weight to scale to the efeature with
100100
"""
101101

102-
super(SingletonWeightObjective, self).__init__(name, [feature])
102+
super(SingletonWeightObjective, self).__init__(name, feature)
103103
self.weight = weight
104104

105105
def calculate_score(self, responses):

0 commit comments

Comments
 (0)