Skip to content

Bug: get_halflife_points for start!=0 #470

@Gero1999

Description

@Gero1999

The function has two main weaknesses that might be relevant to address:

  1. It does not consider start, using lambda.z.time.first, lambda.z.time.last directly. That only makes the calculations valid if start = 0

  2. It is not interval specific. Unfortunately if we have more than one interval with a half-life calculation for the same concentration group, there is a possbility that the user unconsciously excluded part of the excretion phase for one of them, providing half-lifes calculated with different points. This needs to raise an error or warning somehow.

Additionally, because this function may have many potential uses in the future would be nice to optimize its speed as much as we can

#TODO

  • get_halflife_points works for intervals with start != 0 (test: interval with start != 0)
  • get_halflife_points provides a warning/error when two half-lifes from the same group use different points (test: collapsing intervals for the same conc group)

Optional

  • improve fun speed
  • allow as input the PKNCAdata obj as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions