Skip to content

Commit

Permalink
also read weights from legacy FCC
Browse files Browse the repository at this point in the history
Change-Id: I06e3e867f83fae2f9871261f2aa8f48c672eca2e
  • Loading branch information
Jaquier Aurélien Tristan committed Jul 10, 2024
1 parent 42d7b26 commit 33bf681
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bluepyemodel/evaluation/fitness_calculator_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 33bf681

Please sign in to comment.