Skip to content

Commit

Permalink
apparently we have to manually set the restoringbeam
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Oct 20, 2020
1 parent d7e172f commit de282b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spectral_cube/conftest.py
Expand Up @@ -298,6 +298,12 @@ def data_vda_beams_image(tmp_path):
ia.fromfits(infile=tmp_path / 'vda_beams.fits',
outfile=tmp_path / 'vda_beams.image',
overwrite=True)
for (bmaj, bmin, bpa, chan, pol) in beams.data:
ia.setrestoringbeams(major=bmaj,
minor=bmin,
pa=bpa,
channel=chan,
polarization=pol)
ia.close()
return tmp_path / 'vda_beams.image'

Expand Down

0 comments on commit de282b8

Please sign in to comment.