Ejemplo n.º 1
0
 def __init__(self, I_Be, R_e, I_D0, R_0, param_dim=1):
     self.linear = False
     self._I_Be = Parameter(name='I_Be', val=I_Be, mclass=self, param_dim=param_dim, min=I_Be/10.0)
     self._R_e = Parameter(name='R_e', val=R_e, mclass=self, param_dim=param_dim, min=R_e/3.0, max=R_e*3.0)
     self._I_D0 = Parameter(name='I_D0', val=I_D0, mclass=self, param_dim=param_dim, min=I_D0/10.0)
     self._R_0 = Parameter(name='R_0', val=R_0, mclass=self, param_dim=param_dim, min=R_0/3.0, max=R_0*3.0)
     ParametricModel.__init__(self, self.param_names, n_inputs=1, n_outputs=1, param_dim=param_dim)
     self.linear = False
Ejemplo n.º 2
0
 def __init__(self, I_D0, R_0, param_dim=1):
     self._I_D0 = Parameter(name='I_D0', val=I_D0, mclass=self, param_dim=param_dim)
     self._R_0 = Parameter(name='R_0', val=R_0, mclass=self, param_dim=param_dim)
     ParametricModel.__init__(self, self.param_names, n_inputs=1, n_outputs=1, param_dim=param_dim)
     self.linear = False