You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, this is even more complicated than it appears at first. Enabling cds units helps somewhat:
>>> import astropy.units as u
>>> u.Unit('s') is u.Unit('s', format='cds')
False
>>> import astropy.units.cds
>>> with astropy.units.cds.enable():
... u.Unit('s') is u.Unit('s', format='cds')
...
True
but not entirely:
>>> u.Unit('s') is u.s
True
>>> u.Unit('s', format='cds') is u.s
False
>>> with astropy.units.cds.enable():
... u.Unit('s', format='cds') is u.s
...
False
which implies the very confusing:
>>> u.Unit('s') is u.s
True
>>> with astropy.units.cds.enable():
... u.Unit('s') is u.s
...
False
For example:
This first came up here: #7348 (review)
The text was updated successfully, but these errors were encountered: