From 73a5418e7f6c5bc7a024f3037f127cc55168afcf Mon Sep 17 00:00:00 2001 From: Jona JOACHIM Date: Wed, 12 Nov 2025 11:00:11 +0100 Subject: [PATCH] fix q2 formula according to paper. recalculate rate constants after applying the opiates correction. --- PyTCI/models/propofol.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PyTCI/models/propofol.py b/PyTCI/models/propofol.py index 5eed15b..b5202f8 100644 --- a/PyTCI/models/propofol.py +++ b/PyTCI/models/propofol.py @@ -234,7 +234,7 @@ def central(i): ) self.Q2 = ( - theta05 * (self.v2 / v2ref) ** 0.75 * (1 + theta16 * (1 - q3mat / q3matref)) + theta05 * (self.v2 / v2ref) ** 0.75 * (1 + theta16 * (1 - q3mat)) ) self.Q3 = theta06 * (self.v3 / v3ref) ** 0.75 * (q3mat / q3matref) @@ -255,6 +255,8 @@ def with_opiates(self): self.Q1 *= opiatescl self.from_clearances() + self.setup() + self.keo *= 60