desihub / specsim

Quick simulations of spectrograph response
2 stars 9 forks source link

support astropy4 units check in test #111

Closed sbailey closed 4 years ago

sbailey commented 4 years ago

This PR is a one-line six-character change to support unit tests on astropy 4. With astropy 2, comparing a unit-full astropy Quantity array with a unit-less numpy array was apparently ok, but now generates a dizzying traceback of exceptions within exceptions within exceptions that basically boil down to a units mis-match. This PR fixes that.

At the same time, based upon the other dangling PRs we may need to do some Travis config updates to get this to pass on Travis.