From 48616fc7b2c36743ca8289921a35d9133d133122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Mon, 5 Feb 2024 18:43:15 +0100 Subject: [PATCH 1/2] make SingletonWeightObjective a child of SingletonObjective --- bluepyopt/ephys/objectives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluepyopt/ephys/objectives.py b/bluepyopt/ephys/objectives.py index 7df442a5..e55c337d 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""" From 90da854bdb48b762178e9562b24d8a52dfd9b671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Tue, 6 Feb 2024 09:23:06 +0100 Subject: [PATCH 2/2] fix init --- bluepyopt/ephys/objectives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluepyopt/ephys/objectives.py b/bluepyopt/ephys/objectives.py index e55c337d..e5b12848 100644 --- a/bluepyopt/ephys/objectives.py +++ b/bluepyopt/ephys/objectives.py @@ -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):