Merge branch 'develop/quick_fix_integration' into 'master'

Minor fix in ConcentrationModel.integrated_concentration

See merge request cara/cara!178
This commit is contained in:
Philip James Elson 2021-05-10 18:29:57 +00:00
commit 60568aab35

View file

@ -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])