Good point. Did you originally do any checks on the interpolation order
before?


On Mon, May 12, 2014 at 8:09 PM, Kyle Barbary <notifications@github.com>wrote:

> In sncosmo/models.py:
>
> >
> >              # If the filename is None, that component is left out of the model
> >              if name_or_obj is None: continue
> >
> >              # Get the model component from the file
> >              phase, wave, values = read_griddata_ascii(name_or_obj)
> > -            values *= self._SCALE_FACTOR  # TODO: should this really be
> > -                                          # done for ALL components?
> > -            self._model[component] = Spline2d(phase, wave, values, kx=2, ky=2)
> > +
> > +            if component in ["M0", "M1"]:
> > +                values *= self._SCALE_FACTOR
> > +	    self._model[component] = Spline2d(phase, wave, values, kx=1, ky=1)
>
> So we are doing linear interpolation on even the M0 and M1 components now?
> Do you think this is OK?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sncosmo/sncosmo/pull/24/files#r12562882>
> .
>