AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

Replace 1e-32 with actual minimum float #51

Open carterbox opened 4 years ago

carterbox commented 4 years ago

I hope numpy should have some predefined constant for the minimal float32 value greater than 0. So we can replace 1e-32 everywhere

https://numpy.org/doc/stable/reference/generated/numpy.finfo.html?highlight=finfo#numpy.finfo