def METHOD_NAME(self, newparams, **kwargs):
    """Update the model with new parameter values.
    Parameters
    ----------
    newparams : ndarray
        New parameter values.
    **kwargs : dict
        Additional parameters to pass to
        eureka.S5_lightcurve_fitting.models.Model.update().
    """
    super().METHOD_NAME(newparams, **kwargs)
    if self.transit_model is not None:
        self.transit_model.METHOD_NAME(newparams, **kwargs)
    if self.eclipse_model is not None:
        self.eclipse_model.METHOD_NAME(newparams, **kwargs)