Skip to content

Commit

Permalink
Added WCSDIM == 1 constraint to wcs1d loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Torres committed Aug 1, 2019
1 parent 798bad4 commit 0e0edb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions specutils/io/default_loaders/wcs_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def identify_wcs1d_fits(origin, *args, **kwargs):
os.path.splitext(args[0].lower())[1] == '.fits' and
# check if number of axes is one
fits.getheader(args[0])['NAXIS'] == 1 and
fits.getheader(args[0])['WCSDIM'] == 1 and
# check if CTYPE1 kep is in the header
'CTYPE1' in fits.getheader(args[0])
)
Expand Down

0 comments on commit 0e0edb7

Please sign in to comment.