spacetelescope / stwcs

WCS based distortion models and coordinate transformation.
http://stwcs.readthedocs.io
4 stars 18 forks source link

Allow extensions to be string extname in archive_wcs #177

Closed mcara closed 3 years ago

mcara commented 3 years ago

A minor bug fix due to which calling altwcs.archive_wcs() with ext='sci' would cause this function to fail because it was not expanding this extension specification into [('sci', 1), ('sci', 2), ...].

In addition the code for building extension list is slightly more robust.