def test_multi_select_field_no_data(self): list_attr = List(of=str, label='Dummy List', choices=('1', '2', '3', '4', '5')) multi_select_field = MultiSelectField(list_attr, self.name) post_data = {} multi_select_field.fill_from_post(post_data) assert multi_select_field.validate() is False, "Validation should have failed on MultiSelectField!"
def test_multi_select_field(self): list_attr = List(of=str, label='Dummy List', choices=('1', '2', '3', '4', '5')) multi_select_field = MultiSelectField(list_attr, self.name) post_data = {'dummy_name': ['2', '3', '4']} multi_select_field.fill_from_post(post_data) assert multi_select_field.data == post_data[self.name], "Data was not set correctly on the MultiSelectField!"
def __init__(self): super(ZetterbergJansenModelForm, self).__init__() self.He = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().He) self.Hi = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().Hi) self.ke = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().ke) self.ki = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().ki) self.e0 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().e0) self.rho_2 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().rho_2) self.rho_1 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().rho_1) self.gamma_1 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_1) self.gamma_2 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_2) self.gamma_3 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_3) self.gamma_4 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_4) self.gamma_5 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_5) self.gamma_1T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_1T) self.gamma_2T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_2T) self.gamma_3T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_3T) self.P = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().P) self.U = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().U) self.Q = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().Q) self.variables_of_interest = MultiSelectField( ModelsEnum.ZETTERBERG_JANSEN.get_class().variables_of_interest)
def __init__(self): super(EpileptorRestingStateModelForm, self).__init__() self.a = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().a) self.b = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().b) self.c = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().c) self.d = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().d) self.r = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().r) self.s = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().s) self.x0 = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().x0) self.Iext = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().Iext) self.slope = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().slope) self.Iext2 = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().Iext2) self.tau = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().tau) self.aa = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().aa) self.bb = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().bb) self.Kvf = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().Kvf) self.Kf = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().Kf) self.Ks = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().Ks) self.tt = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().tt) self.tau_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().tau_rs) self.I_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().I_rs) self.a_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().a_rs) self.b_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().b_rs) self.d_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().d_rs) self.e_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().e_rs) self.f_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().f_rs) self.alpha_rs = ArrayField( ModelsEnum.EPILEPTOR_RS.get_class().alpha_rs) self.beta_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().beta_rs) self.K_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().K_rs) self.p = ArrayField(ModelsEnum.EPILEPTOR_RS.get_class().p) self.variables_of_interest = MultiSelectField( ModelsEnum.EPILEPTOR_RS.get_class().variables_of_interest)
def __init__(self): super(HopfieldModelForm, self).__init__() self.taux = ArrayField(ModelsEnum.HOPFIELD.get_class().taux) self.tauT = ArrayField(ModelsEnum.HOPFIELD.get_class().tauT) self.dynamic = ArrayField(ModelsEnum.HOPFIELD.get_class().dynamic) self.variables_of_interest = MultiSelectField( ModelsEnum.HOPFIELD.get_class().variables_of_interest)
def __init__(self): super(ReducedSetHindmarshRoseModelForm, self).__init__() self.r = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().r) self.a = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().a) self.b = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().b) self.c = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().c) self.d = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().d) self.s = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().s) self.xo = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().xo) self.K11 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K11) self.K12 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K12) self.K21 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K21) self.sigma = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().sigma) self.mu = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().mu) self.variables_of_interest = MultiSelectField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class( ).variables_of_interest)
def __init__(self, prefix=''): super(Generic2dOscillatorModelForm, self).__init__(prefix) self.tau = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().tau, self) self.I = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().I, self) self.a = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().a, self) self.b = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().b, self) self.c = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().c, self) self.d = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().d, self) self.e = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().e, self) self.f = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().f, self) self.g = ArrayField(ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().g, self) self.alpha = ArrayField( ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().alpha, self) self.beta = ArrayField( ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().beta, self) self.gamma = ArrayField( ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().gamma, self) self.variables_of_interest = MultiSelectField( ModelsEnum.GENERIC_2D_OSCILLATOR.get_class().variables_of_interest, self)
def __init__(self, are_voi_disabled=False): super(CoombesByrne2DModelForm, self).__init__(are_voi_disabled) self.Delta = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.value.Delta) self.v_syn = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.value.v_syn) self.k = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.value.k) self.eta = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.value.eta) self.variables_of_interest = MultiSelectField(ModelsEnum.COOMBES_BYRNE_2D.value.variables_of_interest)
def __init__(self, prefix=''): super(LarterBreakspearModelForm, self).__init__(prefix) self.gCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().gCa, self) self.gK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().gK, self) self.gL = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().gL, self) self.phi = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().phi, self) self.gNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().gNa, self) self.TK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().TK, self) self.TCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().TCa, self) self.TNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().TNa, self) self.VCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().VCa, self) self.VK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().VK, self) self.VL = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().VL, self) self.VNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().VNa, self) self.d_K = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().d_K, self) self.tau_K = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().tau_K, self) self.d_Na = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().d_Na, self) self.d_Ca = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().d_Ca, self) self.aei = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().aei, self) self.aie = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().aie, self) self.b = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().b, self) self.C = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().C, self) self.ane = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().ane, self) self.ani = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().ani, self) self.aee = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().aee, self) self.Iext = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().Iext, self) self.rNMDA = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().rNMDA, self) self.VT = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().VT, self) self.d_V = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().d_V, self) self.ZT = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().ZT, self) self.d_Z = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.get_class().d_Z, self) self.QV_max = ArrayField( ModelsEnum.LARTER_BREAKSPEAR.get_class().QV_max, self) self.QZ_max = ArrayField( ModelsEnum.LARTER_BREAKSPEAR.get_class().QZ_max, self) self.t_scale = ArrayField( ModelsEnum.LARTER_BREAKSPEAR.get_class().t_scale, self) self.variables_of_interest = MultiSelectField( ModelsEnum.LARTER_BREAKSPEAR.get_class().variables_of_interest, self)
def __init__(self, are_voi_disabled=False): super(EpileptorRestingStateModelForm, self).__init__(are_voi_disabled) self.a = ArrayField(ModelsEnum.EPILEPTOR_RS.value.a) self.b = ArrayField(ModelsEnum.EPILEPTOR_RS.value.b) self.c = ArrayField(ModelsEnum.EPILEPTOR_RS.value.c) self.d = ArrayField(ModelsEnum.EPILEPTOR_RS.value.d) self.r = ArrayField(ModelsEnum.EPILEPTOR_RS.value.r) self.s = ArrayField(ModelsEnum.EPILEPTOR_RS.value.s) self.x0 = ArrayField(ModelsEnum.EPILEPTOR_RS.value.x0) self.Iext = ArrayField(ModelsEnum.EPILEPTOR_RS.value.Iext) self.slope = ArrayField(ModelsEnum.EPILEPTOR_RS.value.slope) self.Iext2 = ArrayField(ModelsEnum.EPILEPTOR_RS.value.Iext2) self.tau = ArrayField(ModelsEnum.EPILEPTOR_RS.value.tau) self.aa = ArrayField(ModelsEnum.EPILEPTOR_RS.value.aa) self.bb = ArrayField(ModelsEnum.EPILEPTOR_RS.value.bb) self.Kvf = ArrayField(ModelsEnum.EPILEPTOR_RS.value.Kvf) self.Kf = ArrayField(ModelsEnum.EPILEPTOR_RS.value.Kf) self.Ks = ArrayField(ModelsEnum.EPILEPTOR_RS.value.Ks) self.tt = ArrayField(ModelsEnum.EPILEPTOR_RS.value.tt) self.tau_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.tau_rs) self.I_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.I_rs) self.a_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.a_rs) self.b_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.b_rs) self.d_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.d_rs) self.e_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.e_rs) self.f_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.f_rs) self.alpha_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.alpha_rs) self.beta_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.beta_rs) self.K_rs = ArrayField(ModelsEnum.EPILEPTOR_RS.value.K_rs) self.p = ArrayField(ModelsEnum.EPILEPTOR_RS.value.p) self.variables_of_interest = MultiSelectField(ModelsEnum.EPILEPTOR_RS.value.variables_of_interest)
def __init__(self, are_voi_disabled=False): super(WilsonCowanModelForm, self).__init__(are_voi_disabled) self.c_ee = ArrayField(ModelsEnum.WILSON_COWAN.value.c_ee) self.c_ie = ArrayField(ModelsEnum.WILSON_COWAN.value.c_ie) self.c_ei = ArrayField(ModelsEnum.WILSON_COWAN.value.c_ei) self.c_ii = ArrayField(ModelsEnum.WILSON_COWAN.value.c_ii) self.tau_e = ArrayField(ModelsEnum.WILSON_COWAN.value.tau_e) self.tau_i = ArrayField(ModelsEnum.WILSON_COWAN.value.tau_i) self.a_e = ArrayField(ModelsEnum.WILSON_COWAN.value.a_e) self.b_e = ArrayField(ModelsEnum.WILSON_COWAN.value.b_e) self.c_e = ArrayField(ModelsEnum.WILSON_COWAN.value.c_e) self.theta_e = ArrayField(ModelsEnum.WILSON_COWAN.value.theta_e) self.a_i = ArrayField(ModelsEnum.WILSON_COWAN.value.a_i) self.b_i = ArrayField(ModelsEnum.WILSON_COWAN.value.b_i) self.theta_i = ArrayField(ModelsEnum.WILSON_COWAN.value.theta_i) self.c_i = ArrayField(ModelsEnum.WILSON_COWAN.value.c_i) self.r_e = ArrayField(ModelsEnum.WILSON_COWAN.value.r_e) self.r_i = ArrayField(ModelsEnum.WILSON_COWAN.value.r_i) self.k_e = ArrayField(ModelsEnum.WILSON_COWAN.value.k_e) self.k_i = ArrayField(ModelsEnum.WILSON_COWAN.value.k_i) self.P = ArrayField(ModelsEnum.WILSON_COWAN.value.P) self.Q = ArrayField(ModelsEnum.WILSON_COWAN.value.Q) self.alpha_e = ArrayField(ModelsEnum.WILSON_COWAN.value.alpha_e) self.alpha_i = ArrayField(ModelsEnum.WILSON_COWAN.value.alpha_i) self.variables_of_interest = MultiSelectField(ModelsEnum.WILSON_COWAN.value.variables_of_interest)
def __init__(self, are_voi_disabled=False): super(LarterBreakspearModelForm, self).__init__(are_voi_disabled) self.gCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.gCa) self.gK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.gK) self.gL = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.gL) self.phi = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.phi) self.gNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.gNa) self.TK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.TK) self.TCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.TCa) self.TNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.TNa) self.VCa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.VCa) self.VK = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.VK) self.VL = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.VL) self.VNa = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.VNa) self.d_K = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.d_K) self.tau_K = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.tau_K) self.d_Na = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.d_Na) self.d_Ca = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.d_Ca) self.aei = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.aei) self.aie = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.aie) self.b = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.b) self.C = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.C) self.ane = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.ane) self.ani = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.ani) self.aee = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.aee) self.Iext = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.Iext) self.rNMDA = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.rNMDA) self.VT = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.VT) self.d_V = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.d_V) self.ZT = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.ZT) self.d_Z = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.d_Z) self.QV_max = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.QV_max) self.QZ_max = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.QZ_max) self.t_scale = ArrayField(ModelsEnum.LARTER_BREAKSPEAR.value.t_scale) self.variables_of_interest = MultiSelectField(ModelsEnum.LARTER_BREAKSPEAR.value.variables_of_interest)
def __init__(self, are_voi_disabled=False): super(EpileptorCodim3SlowModModelForm, self).__init__(are_voi_disabled) self.mu1_Ain = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu1_Ain) self.mu2_Ain = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu2_Ain) self.nu_Ain = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.nu_Ain) self.mu1_Bin = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu1_Bin) self.mu2_Bin = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu2_Bin) self.nu_Bin = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.nu_Bin) self.mu1_Aend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu1_Aend) self.mu2_Aend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu2_Aend) self.nu_Aend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.nu_Aend) self.mu1_Bend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu1_Bend) self.mu2_Bend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.mu2_Bend) self.nu_Bend = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.nu_Bend) self.b = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.b) self.R = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.R) self.c = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.c) self.cA = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.cA) self.cB = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.cB) self.dstar = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.dstar) self.Ks = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.Ks) self.N = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.N) self.modification = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.modification) self.variables_of_interest = MultiSelectField( ModelsEnum.EPILEPTOR_CODIM_3_SLOW.value.variables_of_interest)
def __init__(self, prefix=''): super(ReducedSetHindmarshRoseModelForm, self).__init__(prefix) self.r = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().r, self) self.a = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().a, self) self.b = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().b, self) self.c = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().c, self) self.d = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().d, self) self.s = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().s, self) self.xo = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().xo, self) self.K11 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K11, self) self.K12 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K12, self) self.K21 = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().K21, self) self.sigma = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().sigma, self) self.mu = ArrayField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class().mu, self) self.variables_of_interest = MultiSelectField( ModelsEnum.REDUCED_SET_HINDMARSH_ROSE.get_class(). variables_of_interest, self)
def __init__(self, prefix=''): super(WilsonCowanModelForm, self).__init__(prefix) self.c_ee = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_ee, self) self.c_ie = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_ie, self) self.c_ei = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_ei, self) self.c_ii = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_ii, self) self.tau_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().tau_e, self) self.tau_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().tau_i, self) self.a_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().a_e, self) self.b_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().b_e, self) self.c_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_e, self) self.theta_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().theta_e, self) self.a_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().a_i, self) self.b_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().b_i, self) self.theta_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().theta_i, self) self.c_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().c_i, self) self.r_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().r_e, self) self.r_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().r_i, self) self.k_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().k_e, self) self.k_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().k_i, self) self.P = ArrayField(ModelsEnum.WILSON_COWAN.get_class().P, self) self.Q = ArrayField(ModelsEnum.WILSON_COWAN.get_class().Q, self) self.alpha_e = ArrayField(ModelsEnum.WILSON_COWAN.get_class().alpha_e, self) self.alpha_i = ArrayField(ModelsEnum.WILSON_COWAN.get_class().alpha_i, self) self.variables_of_interest = MultiSelectField( ModelsEnum.WILSON_COWAN.get_class().variables_of_interest, self)
def __init__(self, prefix=''): super(ZetterbergJansenModelForm, self).__init__(prefix) self.He = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().He, self) self.Hi = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().Hi, self) self.ke = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().ke, self) self.ki = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().ki, self) self.e0 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().e0, self) self.rho_2 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().rho_2, self) self.rho_1 = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().rho_1, self) self.gamma_1 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_1, self) self.gamma_2 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_2, self) self.gamma_3 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_3, self) self.gamma_4 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_4, self) self.gamma_5 = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_5, self) self.gamma_1T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_1T, self) self.gamma_2T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_2T, self) self.gamma_3T = ArrayField( ModelsEnum.ZETTERBERG_JANSEN.get_class().gamma_3T, self) self.P = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().P, self) self.U = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().U, self) self.Q = ArrayField(ModelsEnum.ZETTERBERG_JANSEN.get_class().Q, self) self.variables_of_interest = MultiSelectField( ModelsEnum.ZETTERBERG_JANSEN.get_class().variables_of_interest, self)
def __init__(self, prefix=''): super(EpileptorCodim3ModelForm, self).__init__(prefix) self.mu1_start = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().mu1_start, self) self.mu2_start = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().mu2_start, self) self.nu_start = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().nu_start, self) self.mu1_stop = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().mu1_stop, self) self.mu2_stop = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().mu2_stop, self) self.nu_stop = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().nu_stop, self) self.b = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().b, self) self.R = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().R, self) self.c = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().c, self) self.dstar = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().dstar, self) self.Ks = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().Ks, self) self.N = ArrayField(ModelsEnum.EPILEPTOR_CODIM_3.get_class().N, self) self.modification = ArrayField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().modification, self) self.variables_of_interest = MultiSelectField( ModelsEnum.EPILEPTOR_CODIM_3.get_class().variables_of_interest, self)
def __init__(self, are_voi_disabled=False): super(ZerlautAdaptationFirstOrderModelForm, self).__init__(are_voi_disabled) self.g_L = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.g_L) self.E_L_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.E_L_e) self.E_L_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.E_L_i) self.C_m = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.C_m) self.b_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.b_e) self.b_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.b_i) self.a_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.a_e) self.a_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.a_i) self.tau_w_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.tau_w_e) self.tau_w_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.tau_w_i) self.E_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.E_e) self.E_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.E_i) self.Q_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.Q_e) self.Q_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.Q_i) self.tau_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.tau_e) self.tau_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.tau_i) self.N_tot = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.N_tot) self.p_connect = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.p_connect) self.g = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.g) self.K_ext_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.K_ext_e) self.K_ext_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.K_ext_i) self.T = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.T) self.P_e = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.P_e) self.P_i = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.P_i) self.external_input_ex_ex = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.external_input_ex_ex) self.external_input_ex_in = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.external_input_ex_in) self.external_input_in_ex = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.external_input_in_ex) self.external_input_in_in = ArrayField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.external_input_in_in) self.variables_of_interest = MultiSelectField(ModelsEnum.ZERLAUT_FIRST_ORDER.value.variables_of_interest)
def __init__(self): super(CoombesByrne2DModelForm, self).__init__() self.Delta = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.get_class().Delta) self.v_syn = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.get_class().v_syn) self.k = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.get_class().k) self.eta = ArrayField(ModelsEnum.COOMBES_BYRNE_2D.get_class().eta) self.variables_of_interest = MultiSelectField( ModelsEnum.COOMBES_BYRNE_2D.get_class().variables_of_interest)
def __init__(self, variables_of_interest_indexes, prefix='', project_id=None): super(MonitorForm, self).__init__(prefix) self.project_id = project_id self.period = ScalarField(Monitor.period, self) self.variables_of_interest_indexes = variables_of_interest_indexes self.variables_of_interest = MultiSelectField(List(of=str, label='Model Variables to watch', choices=tuple(self.variables_of_interest_indexes.keys())), self, name='variables_of_interest')
def __init__(self): super(TimeseriesMetricsAdapterForm, self).__init__() self.time_series = TraitDataTypeSelectField( TimeseriesMetricsAdapterModel.time_series, name="time_series") self.start_point = FloatField( TimeseriesMetricsAdapterModel.start_point) self.segment = IntField(TimeseriesMetricsAdapterModel.segment) self.algorithms = MultiSelectField( TimeseriesMetricsAdapterModel.algorithms, name="algorithms")
def __init__(self, are_voi_disabled=False): super(CoombesByrneModelForm, self).__init__(are_voi_disabled) self.Delta = ArrayField(ModelsEnum.COOMBES_BYRNE.get_class().Delta) self.alpha = ArrayField(ModelsEnum.COOMBES_BYRNE.get_class().alpha) self.v_syn = ArrayField(ModelsEnum.COOMBES_BYRNE.get_class().v_syn) self.k = ArrayField(ModelsEnum.COOMBES_BYRNE.get_class().k) self.eta = ArrayField(ModelsEnum.COOMBES_BYRNE.get_class().eta) self.variables_of_interest = MultiSelectField( ModelsEnum.COOMBES_BYRNE.get_class().variables_of_interest)
def __init__(self, is_surface_simulation=False): super(SimulatorMonitorFragment, self).__init__() self.monitor_choices = get_ui_name_to_monitor_dict( is_surface_simulation) self.is_surface_simulation = is_surface_simulation self.monitors = MultiSelectField(List( of=str, label='Monitors', choices=tuple(self.monitor_choices.keys())), name='monitors')
def __init__(self, prefix='', project_id=None): super(TimeseriesMetricsAdapterForm, self).__init__(prefix, project_id) self.time_series = TraitDataTypeSelectField( TimeseriesMetricsAdapterModel.time_series, self, name="time_series") self.start_point = ScalarField( TimeseriesMetricsAdapterModel.start_point, self) self.segment = ScalarField(TimeseriesMetricsAdapterModel.segment, self) self.algorithms = MultiSelectField( TimeseriesMetricsAdapterModel.algorithms, self, name="algorithms")
def __init__(self, are_voi_disabled=False): super(MontbrioPazoRoxinModelForm, self).__init__(are_voi_disabled) self.tau = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.tau) self.I = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.I) self.Delta = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.Delta) self.J = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.J) self.eta = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.eta) self.Gamma = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.Gamma) self.cr = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.cr) self.cv = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.cv) self.variables_of_interest = MultiSelectField(ModelsEnum.MONTBRIO_PAZO_ROXIN.value.variables_of_interest)
def __init__(self, session_stored_simulator=None): super(MonitorForm, self).__init__() self.session_stored_simulator = session_stored_simulator self.period = FloatField(Monitor.period) self.variables_of_interest_indexes = {} if session_stored_simulator is not None: self.variables_of_interest_indexes = session_stored_simulator.determine_indexes_for_chosen_vars_of_interest() self.variables_of_interest = MultiSelectField(List(of=str, label='Model Variables to watch', choices=tuple(self.variables_of_interest_indexes.keys())), name='variables_of_interest')
def __init__(self, are_voi_disabled=False): super(ReducedWongWangModelForm, self).__init__(are_voi_disabled) self.a = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.a) self.b = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.b) self.d = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.d) self.gamma = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.gamma) self.tau_s = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.tau_s) self.w = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.w) self.J_N = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.J_N) self.I_o = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.I_o) self.sigma_noise = ArrayField(ModelsEnum.REDUCED_WONG_WANG.value.sigma_noise) self.variables_of_interest = MultiSelectField(ModelsEnum.REDUCED_WONG_WANG.value.variables_of_interest)
def __init__(self, are_voi_disabled=False): super(ReducedSetFitzHughNagumoModelForm, self).__init__(are_voi_disabled) self.tau = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.tau) self.a = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.a) self.b = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.b) self.K11 = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.K11) self.K12 = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.K12) self.K21 = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.K21) self.sigma = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.sigma) self.mu = ArrayField(ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.mu) self.variables_of_interest = MultiSelectField( ModelsEnum.REDUCED_SET_FITZ_HUGH_NAGUMO.value.variables_of_interest)
def __init__(self, are_voi_disabled=False): super(GastSchmidtKnoscheSFModelForm, self).__init__(are_voi_disabled) self.tau = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.tau) self.tau_A = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.tau_A) self.alpha = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.alpha) self.I = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.I) self.Delta = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.Delta) self.J = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.J) self.eta = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.eta) self.cr = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.cr) self.cv = ArrayField(ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.cv) self.variables_of_interest = MultiSelectField( ModelsEnum.GAST_SCHMIDT_KNOSCHE_SF.value.variables_of_interest)
def __init__(self): super(MontbrioPazoRoxinModelForm, self).__init__() self.tau = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().tau) self.I = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().I) self.Delta = ArrayField( ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().Delta) self.J = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().J) self.eta = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().eta) self.Gamma = ArrayField( ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().Gamma) self.cr = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().cr) self.cv = ArrayField(ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().cv) self.variables_of_interest = MultiSelectField( ModelsEnum.MONTBRIO_PAZO_ROXIN.get_class().variables_of_interest)