code: def update(self, param_vals):
          
          self.update_rscl_x_params(param_vals[self.rscale_mask])
          self.state.update(self.param_names, param_vals[self.globals_mask])
          self.param_vals[:] = param_vals.copy()
          if np.any(np.isnan(self.state.residuals)):
              raise FloatingPointError('state update caused nans in residuals')
docs: Updates all the parameters of the state + rscale(z)