radio-astro-tools / spectral-cube

Library for reading and analyzing astrophysical spectral data cubes
http://spectral-cube.rtfd.org
BSD 3-Clause "New" or "Revised" License
96 stars 63 forks source link

LDO.max() returns slice #837

Open keflavich opened 2 years ago

keflavich commented 2 years ago
>>> cube = SpectralCube.read('/orange/adamginsburg/ACES//data/2021.1.00172.L/science_goal.uid___A001_X1590_X30a8/group.uid___A001_X1590_X30a9/member.uid___A001_X15a0_X178/calibrated/working/uid___A001_X15a0_X178.s10_0.Sgr_A_star_sci.spw25_27_29_31_33_35.cont.I.iter1.psf.tt0', format='casa_image')
>>> cube.max()
 <Quantity 1.>
>>> cube[0].max()
 <Slice 1.>

This is a bug!

keflavich commented 2 years ago

I have no idea how to fix this.