Inference.py: Bug fixes related to functions with limited domain (particular log) nan on masked arrays.
Inference.py: Bug fixes related to functions with limited domain (particular log) nan on masked arrays.

If we do numpy.log(m), any entries in m that are less than zero will become masked. Not just in the result, but the input m itself will be changed. (Obnoxious!) The solution is to use numpy.ma.log.



git-svn-id: 4c7b13231a96299fde701bb5dec4bd2aaf383fc6@212 979d6bd5-6d4d-0410-bece-f567c23bd345

beni55/dadi,ChenHsiang/dadi,paulirish/dadi,RyanGutenkunst/dadi,cheese1213/dadi,yangjl/dadi,niuhuifei/dadi,ChenHsiang/dadi,cheese1213/dadi,beni55/dadi,paulirish/dadi,niuhuifei/dadi,RyanGutenkunst/dadi,yangjl/dadi