Closed yunhuige closed 6 years ago
Sometime I encountered this problem because some priors have a "0" population so when we convert it to energy Numpy will give us "nan". I think we need to fix it in the preparation scripts.
one way may solve this problem: https://docs.scipy.org/doc/numpy/reference/generated/numpy.nan_to_num.html
New function added in the toolbox to convert pop file to energy file and this issue has been taken care of in this function. I don't think we will get "NaN" in calculated experimental observables though.
Make a flag when there is "nan" in priors (energy files) or calculated experimental observables