Skip to content

Commit

Permalink
ignore errors in ic50_calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Dec 4, 2024
1 parent a753542 commit cbf6083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drevalpy/datasets/curvecurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def _calc_ic50(model_params_df: pd.DataFrame):
"""

def ic50(front, back, slope, pec50):
return (np.log10((front - back) / (0.5 + back)) - slope * pec50) / slope
with np.errstate(invalid="ignore"):
return (np.log10((front - back) / (0.5 + back)) - slope * pec50) / slope

front = model_params_df["Front"].values
back = model_params_df["Back"].values
Expand Down

0 comments on commit cbf6083

Please sign in to comment.