mikeblazanin / gcplyr

gcplyr is an R package that facilitates wrangling and analysis of microbial growth curve data
https://mikeblazanin.github.io/gcplyr/
Other
30 stars 2 forks source link

bug with find_threshold_crosses and endpoints #110

Closed mikeblazanin closed 1 year ago

mikeblazanin commented 1 year ago

Basically, when an endpoint should be returned (eg bc return_endpoints = TRUE and the first point is above the threshold) but return = "x", find_threshold_crosses attempts to find the intersection of a flat line with the threshold, which leads to a divide-by-zero error and NaN being returned.

mikeblazanin commented 1 year ago

done in v1.1.0.9001