From 8af8f96f248b198e0d246c46c52a2f2102e4db9a Mon Sep 17 00:00:00 2001 From: Weina Ji Date: Fri, 11 Aug 2023 11:04:56 +0200 Subject: [PATCH] [BBPBGLIB-851]Warning on cao_CR if not the same as extracellular_calcium --- neurodamus/core/configuration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neurodamus/core/configuration.py b/neurodamus/core/configuration.py index b5b9be88e..96263263b 100644 --- a/neurodamus/core/configuration.py +++ b/neurodamus/core/configuration.py @@ -720,6 +720,9 @@ def _simulator_globals(config: _SimConfig, run_conf): else: log_verbose("GLOBAL %s = %s", key, value) setattr(h, key, value) + if "cao_CR" in key and value != config.extracellular_calcium: + logging.warning("Value of %s (%s) is not the same as extracellular_calcium (%s)" + % (key, value, config.extracellular_calcium)) @SimConfig.validator