update API to conform with galsim.SED API