Skip to content

Commit

Permalink
Merge pull request #142 from keflavich/preserve_header_stokescube
Browse files Browse the repository at this point in the history
minor: StokesCube should pass header to regular cube
  • Loading branch information
keflavich committed Sep 8, 2014
2 parents d2ed5cd + 1a20ba4 commit 8e1b8fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,8 @@ def read(cls, filename, format=None, hdu=None, **kwargs):
cube = read(filename, format=format, hdu=hdu, **kwargs)
if isinstance(cube, StokesSpectralCube):
return SpectralCube(data=cube._data, wcs=cube._wcs,
meta=cube._meta, mask=cube._mask)
meta=cube._meta, mask=cube._mask,
header=cube._header)
else:
return cube

Expand Down

0 comments on commit 8e1b8fe

Please sign in to comment.