diff options
Diffstat (limited to 'stwcs/updatewcs/utils.py')
-rw-r--r-- | stwcs/updatewcs/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stwcs/updatewcs/utils.py b/stwcs/updatewcs/utils.py index 1214199..ebfc701 100644 --- a/stwcs/updatewcs/utils.py +++ b/stwcs/updatewcs/utils.py @@ -257,7 +257,7 @@ def remove_distortion(fname, dist_keyword): del f[hdu].header[kw] except KeyError: pass - ext_mapping = altwcs.mapFitsExt2HDUListInd(fname, extname).values() + ext_mapping = list(altwcs.mapFitsExt2HDUListInd(fname, extname).values()) ext_mapping.sort() for hdu in ext_mapping[::-1]: del f[hdu] |