Exemple #1
0
 def add_param(self, param_id, shape, post=None, value=None):
     if value is None:
         if param_id == 'E':
             value = Parameter(shape, self.inite, name=param_id, post=post)
         elif param_id == 'R':
             value = Parameter(shape, self.initr, name=param_id, post=post)
         else:
             value = Parameter(shape, self.init, name=param_id, post=post)
     setattr(self, param_id, value)
     self.params[param_id] = value
Exemple #2
0
	def add_param(self, param_id, shape, post=None, value=None):
		value = Parameter(shape, self.init, name=param_id, post=post, value=value)
		setattr(self, param_id, value)
		self.params[param_id] = value				# Make entry of the parameter in params list