From 33bf681693219808cd27b466ab8a0d62f5384e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Wed, 10 Jul 2024 08:31:52 +0200 Subject: [PATCH] also read weights from legacy FCC Change-Id: I06e3e867f83fae2f9871261f2aa8f48c672eca2e --- bluepyemodel/evaluation/fitness_calculator_configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bluepyemodel/evaluation/fitness_calculator_configuration.py b/bluepyemodel/evaluation/fitness_calculator_configuration.py index b700cacc..050dcd77 100644 --- a/bluepyemodel/evaluation/fitness_calculator_configuration.py +++ b/bluepyemodel/evaluation/fitness_calculator_configuration.py @@ -298,6 +298,7 @@ def _add_bluepyefe_efeature(self, feature, protocol_name, recording, threshold_e threshold_efeature_std=threshold_efeature_std, sample_size=feature.get("n", None), default_std_value=self.default_std_value, + weight=feature.get("weight", 1.0), ) if ( @@ -456,6 +457,7 @@ def _add_legacy_efeature(self, feature, protocol_name, recording, threshold_efea efel_settings=feature.get("efel_settings", {}), threshold_efeature_std=threshold_efeature_std, default_std_value=self.default_std_value, + weight=feature.get("weight", 1.0), ) if protocol_name == "Rin":