Skip to content

Commit

Permalink
Add a check for idelta > 0 in data.expand
Browse files Browse the repository at this point in the history
  • Loading branch information
mhovd committed May 10, 2024
1 parent 7a6f1d1 commit 24dae37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/mod.rs
Expand Up @@ -451,6 +451,9 @@ impl DataTrait for Data {
}

fn expand(&self, idelta: f64, tad: f64) -> Data {
if idelta <= 0.0 {
return self.clone();
}
// Determine the last time of the last observation, or Infusion + Duration
let mut last_time = self
.subjects
Expand Down

0 comments on commit 24dae37

Please sign in to comment.