From bb4bcebe21643a2d62cd2c846e257f3cfb519323 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Mon, 10 May 2021 20:23:54 +0200 Subject: [PATCH] Minor fix in ConcentrationModel.integrated_concentration --- cara/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/models.py b/cara/models.py index e5048855..ec81b37c 100644 --- a/cara/models.py +++ b/cara/models.py @@ -736,7 +736,7 @@ class ConcentrationModel: req_start, req_stop = start, stop total_concentration = 0. for interval_start, interval_stop in zip(state_change_times[:-1], state_change_times[1:]): - if start > interval_stop or stop < interval_start: + if req_start > interval_stop or req_stop < interval_start: continue # Clip the current interval to the requested range. start = max([interval_start, req_start])