zblz / naima

Derivation of non-thermal particle distributions through MCMC spectral fitting
http://naima.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 54 forks source link

Fix quantity array comparison in lnprob #196

Closed zblz closed 4 years ago

zblz commented 4 years ago

The new __array_function__ hooks for numpy functions in astropy quantities made np.array_equal throw exceptions in cases where before it would have returned false. This PR catches those exceptions and treats them as the quantities not being equal.