Skip to content

Commit

Permalink
Remove warningsfilter in IC50 (could persist)
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Jan 24, 2019
1 parent 96a0c96 commit f4bd5b5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions thunor/curve_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,10 @@ def ic(self, ic_num=50):

ic_frac = ic_num / 100.0

warnings.filterwarnings(
'once',
'overflow encountered in double_scalars',
category=RuntimeWarning
)
icN = self.ec50 * (ic_frac / (1 - ic_frac - (emax / e0))) ** (
1 / self.hill_slope)

# Filtered overflow will lead to -inf, which we deal with here
# Overflow will lead to -inf, which we deal with here
if np.isnan(icN) or np.isinf(icN):
icN = None

Expand Down

0 comments on commit f4bd5b5

Please sign in to comment.