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
95 stars 61 forks source link

Test data for MWE #836

Open keflavich opened 1 year ago

keflavich commented 1 year 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?