Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectral cube arithmetic is non-commutative when combined with quantities #839

Open
keflavich opened this issue Aug 30, 2022 · 0 comments
Open

Comments

@keflavich
Copy link
Contributor

from spectral_cube import SpectralCube
from astropy import units as u
cube = SpectralCube.read('http://www.astropy.org/astropy-data/l1448/l1448_13co.fits')
fivecube = cube * 5  # all good, this is a cube
failure = 5 * cube  # kinda ok, this raises an exception
bug = 5*u.km * cube  # this results in a numpy array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant