choderalab / assaytools

Modeling and Bayesian analysis of fluorescence and absorbance assays.
http://assaytools.readthedocs.org
GNU Lesser General Public License v2.1
18 stars 11 forks source link

Fix #98 #99

Closed jchodera closed 7 years ago

jchodera commented 7 years ago

This fixes the warning

/cbio/jclab/home/hansons/opt/anaconda/lib/python2.7/site-packages/assaytools-0.2.0-py2.7.egg/assaytools/pymcmodels.py:239: RuntimeWarning: invalid value encountered in divide
  scaling = (1 - np.exp(-alpha)) / alpha     

that would not actually cause problems because the nans were replaced by numerical values in the next line. Instead, we split up the calculations into two branches so as to not trigger this warning in the first place.

sonyahanson commented 7 years ago

Looks good. This is good for merging?

jchodera commented 7 years ago

Yep!