def set_params(self, params_vect, template): #sets the parameters from a vector (used in climin) b1, b2, w1, w2 = util.shaped_from_flat(params_vect, template) self.b1.set_value(b1) self.b2.set_value(b2) self.w1.set_value(w1) self.w2.set_value(w2)
def set_params(self, params_vect, template): #sets the parameters from a vector (used in climin) b, c, s, w = util.shaped_from_flat(params_vect, template) self.b.set_value(b) self.c.set_value(c) self.s.set_value(s) self.w.set_value(w)
def set_params(self, params_vect, template): #sets the parameters from a vector (used in climin) b1,b2,w1,w2 = util.shaped_from_flat(params_vect, template) self.b1.set_value(b1) self.b2.set_value(b2) self.w1.set_value(w1) self.w2.set_value(w2)
def set_params(self, params_vect, template): #sets the parameters from a vector (used in climin) b,c,s,w = util.shaped_from_flat(params_vect,template) self.b.set_value(b) self.c.set_value(c) self.s.set_value(s) self.w.set_value(w)
def set_params(self, params_vect, template): #sets the parameters from a vector (used in climin) b, c1, c2, s1, s2, w = util.shaped_from_flat(params_vect, template) self.b.set_value(b) self.c1.set_value(c1) self.c2.set_value(c2) self.s1.set_value(s1) self.s2.set_value(s2) self.w.set_value(w)