def METHOD_NAME(self, w, t=0.):
    kw = self.parameters.copy()
    for k, v in kw.items():
        kw[k] = v.value
    for i, name in enumerate(var_names):
        kw[name] = w[:, i]
    return np.array(energyfunc(**kw))