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

Test data for MWE #836

Open keflavich opened 2 years ago

keflavich commented 2 years ago

@astrofrog this is a question for you: given all the fixtures we have for testing, is there a straightforward way to make a MWE using our generated data?

I would like to do something like:

from spectral_cube.conftest import data_vda_beams
from spectral_cube.tests.test_spectral_cube import cube_and_raw
cube, data = cube_and_raw(data_vda_beams())

or ideally something even simpler to get an easy-to-reproduce cube for error reproduction. I'd like to add this to the contributing guidelines.

What's the easiest way to achieve this right now?