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

Commit 609b136

Browse files
Merge pull request #178 from BlueBrain/absolute-extraction
Fix setting mismatch when doing absolute amplitude extraction
2 parents 900d810 + 4bd15a2 commit 609b136

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bluepyemodel/emodel_pipeline/emodel_settings.py

+10
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,16 @@ def __init__(
408408
# Specific to threshold based optimisation
409409
self.name_Rin_protocol = name_Rin_protocol
410410
self.name_rmp_protocol = name_rmp_protocol
411+
if self.extract_absolute_amplitudes and (
412+
self.name_Rin_protocol is not None or self.name_rmp_protocol is not None
413+
):
414+
self.name_Rin_protocol = None
415+
self.name_rmp_protocol = None
416+
logger.warning(
417+
"Setting threshold-based amplitude related settings "
418+
"'name_rmp_protocol' and 'name_Rin_protocol' to None because "
419+
"extract_absolute_amplitudes setting is set to True"
420+
)
411421
self.strict_holding_bounds = strict_holding_bounds
412422

413423
# Settings related to the validation

0 commit comments

Comments
 (0)