Skip to content

Commit

Permalink
Fix test failures when radio_beam is installed, and also failure in _…
Browse files Browse the repository at this point in the history
…_dir__ with Python 2
  • Loading branch information
astrofrog committed Jan 7, 2016
1 parent 957e6b3 commit 5d77a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spectral_cube/io/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def load_fits_cube(input, hdu=0, meta=None, **kwargs):
for component in data:
comp_data, comp_wcs = cube_utils._orient(data[component], wcs)
comp_mask = LazyMask(np.isfinite, data=comp_data, wcs=comp_wcs)
stokes_data[component] = SpectralCube(comp_data, wcs=comp_wcs, mask=comp_mask, meta=meta)
stokes_data[component] = SpectralCube(comp_data, wcs=comp_wcs, mask=comp_mask, meta=meta, header=header)

cube = StokesSpectralCube(stokes_data)

Expand Down
2 changes: 1 addition & 1 deletion spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ def wcs(self):
return self._wcs

def __dir__(self):
return list(self._stokes_data.keys()) + object.__dir__(self)
return list(self._stokes_data.keys()) + super(StokesSpectralCube, self).__dir__()

def __getattr__(self, attribute):
"""
Expand Down

0 comments on commit 5d77a74

Please sign in to comment.