I made an edit doing this to `galsim/wcs.py` here: 55c4863 ... Please revert if needed.