From 5ff951b3cd326e67ea4a21d4b20ac2a2bfcdab66 Mon Sep 17 00:00:00 2001 From: ilkilic Date: Tue, 9 Jul 2024 16:16:01 +0200 Subject: [PATCH] fix morph_modifiers check --- bluepyemodel/evaluation/evaluation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluepyemodel/evaluation/evaluation.py b/bluepyemodel/evaluation/evaluation.py index 45ee452b..0f07c365 100644 --- a/bluepyemodel/evaluation/evaluation.py +++ b/bluepyemodel/evaluation/evaluation.py @@ -264,9 +264,9 @@ def get_evaluator_from_access_point( record_ions_and_currents=record_ions_and_currents ) - if model_configuration.morph_modifiers: + if model_configuration.morph_modifiers is not None: morph_modifiers = model_configuration.morph_modifiers - elif access_point.pipeline_settings: + elif access_point.pipeline_settings is not None: morph_modifiers = access_point.pipeline_settings.morph_modifiers else: morph_modifiers = None