Skip to content

Commit

Permalink
Merge pull request #487 from BlueBrain/weight-opt
Browse files Browse the repository at this point in the history
make SingletonWeightObjective a child of SingletonObjective
  • Loading branch information
AurelienJaquier authored Feb 6, 2024
2 parents 6fddc82 + 90da854 commit 6679d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluepyopt/ephys/objectives.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __str__(self):
return '( %s )' % self.features[0]


class SingletonWeightObjective(EFeatureObjective):
class SingletonWeightObjective(SingletonObjective):

"""Single EPhys feature"""

Expand All @@ -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):
Expand Down

0 comments on commit 6679d3c

Please sign in to comment.