From 077e3fd9f1028bd6673cbb861160dca3fd5050e8 Mon Sep 17 00:00:00 2001 From: ilkilic Date: Fri, 1 Nov 2024 15:25:59 +0100 Subject: [PATCH] add a warning when no RANGE variable is defined in mod file when plotting currentscape --- bluepyemodel/emodel_pipeline/plotting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bluepyemodel/emodel_pipeline/plotting.py b/bluepyemodel/emodel_pipeline/plotting.py index 438be04f..23fcbcd6 100644 --- a/bluepyemodel/emodel_pipeline/plotting.py +++ b/bluepyemodel/emodel_pipeline/plotting.py @@ -1977,6 +1977,10 @@ def plot_models( dendritic_feature_plots(mo, "rheobase", dest_leaf, figures_dir) if plot_currentscape: + logger.warning( + "If a .mod file lacks RANGE current variable, " + "no associated current will be plotted in Currentscape." + ) config = access_point.pipeline_settings.currentscape_config figures_dir_currentscape = figures_dir / "currentscape" / dest_leaf currentscape(