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
97 stars 65 forks source link

Don't use bottleneck in statistics() #753

Closed astrofrog closed 2 years ago

astrofrog commented 2 years ago

Bottleneck has a memory leak with big-endian data (https://github.com/pydata/bottleneck/issues/351) and appears to not be well maintained anymore (no recent releases). I also don't see any performance benefits when applying it to cubes without the axis keyword (actually I am having issues finding an example where it does provide a performance improvement, maybe numpy have sped up their functions?).