metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
GNU General Public License v2.0
131 stars 36 forks source link

Fix behavior for regimen::ii() #1170

Closed kylebaron closed 9 months ago

kylebaron commented 9 months ago

See #1169 for details. This PR changes regimen::ii() to just just update the dose interval, with no other fancy tricks. Look at the working example in #1169; I think that's what we want.

I put a note in the tests that I took the cutoffs for those tests from looking at a plot of the profile. The plot looks right to me. The tests check that the pattern we get is what we'd expect from the model code. But the exact cutoffs aren't obvious.

@kyleam I'd like to send this through as a hotfix if possible. As for general reliability, I've been kicking the tires for several hours on this working up a blog post and no other surprises found.