Skip to content

Commit

Permalink
Merge pull request #1 from pllim/fix-moar-casa
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog authored Feb 25, 2022
2 parents 58e958e + edc6f0c commit 1067dc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions glue_astronomy/io/spectral_cube/tests/test_spectral_cube.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import pytest
from astropy.utils.data import get_pkg_data_filename
from astropy.utils.data import get_pkg_data_filename, get_pkg_data_path
from glue.qglue import parse_data
from spectral_cube import SpectralCube

Expand All @@ -12,7 +11,7 @@ def test_identifier_fits():


def test_identifier_casa():
assert is_spectral_cube(get_pkg_data_filename('data/cube_3d.image'))
assert is_spectral_cube(get_pkg_data_path('data/cube_3d.image'))


def test_reader_fits():
Expand All @@ -37,8 +36,9 @@ def test_reader_fits_4d_fullstokes():


def test_reader_casa():
data = read_spectral_cube(get_pkg_data_filename('data/cube_3d.image'))
assert isinstance(data['STOKES I'], np.ndarray)
from dask import array as dask_array
data = read_spectral_cube(get_pkg_data_path('data/cube_3d.image'))
assert isinstance(data['STOKES I'], dask_array.Array)
assert data.shape == (2, 3, 4)


Expand Down

0 comments on commit 1067dc0

Please sign in to comment.