forms
Package¶
coupling_forms
¶
- class tvb.adapters.forms.coupling_forms.CouplingFunctionsEnum(value)[source]¶
Bases:
TupleEnum
An enumeration.
- DIFFERENCE = <class 'tvb.simulator.coupling.Difference'>¶
- HYPERBOLIC_TANGENT = <class 'tvb.simulator.coupling.HyperbolicTangent'>¶
- KURAMOTO = <class 'tvb.simulator.coupling.Kuramoto'>¶
- LINEAR = <class 'tvb.simulator.coupling.Linear'>¶
- PRESIGMOIDAL = <class 'tvb.simulator.coupling.PreSigmoidal'>¶
- SCALING = <class 'tvb.simulator.coupling.Scaling'>¶
- SIGMOIDAL = <class 'tvb.simulator.coupling.Sigmoidal'>¶
- SIGMOIDAL_JANSEN_RIT = <class 'tvb.simulator.coupling.SigmoidalJansenRit'>¶
- class tvb.adapters.forms.coupling_forms.DifferenceCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.HyperbolicTangentCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.KuramotoCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.LinearCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.PreSigmoidalCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.ScalingCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.SigmoidalCouplingForm[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.coupling_forms.SigmoidalJansenRitForm[source]¶
Bases:
FormWithRanges
equation_forms
¶
- class tvb.adapters.forms.equation_forms.AbsoluteEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.AlphaEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.BoldMonitorEquationsEnum(value)[source]¶
Bases:
EquationsEnum
An enumeration.
- DOUBLE_EXPONENTIAL_KERNEL = <class 'tvb.datatypes.equations.DoubleExponential'>¶
- Gamma_KERNEL = <class 'tvb.datatypes.equations.Gamma'>¶
- MOG_KERNEL = <class 'tvb.datatypes.equations.MixtureOfGammas'>¶
- VOLTERRA_KERNEL = <class 'tvb.datatypes.equations.FirstOrderVolterra'>¶
- class tvb.adapters.forms.equation_forms.CosineEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.DoubleExponentialEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.DoubleGaussianEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.EquationForm[source]¶
Bases:
Form
- fill_from_trait(trait)[source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- fill_trait(datatype)[source]¶
Copies the value of the TraitFields to the corresponding Attr-ibutes of the given trait instance Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.equation_forms.FirstOrderVolterraEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.GammaEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.GaussianEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.GeneralizedSigmoidEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.IdentityEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.LinearEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.LogarithmEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.MixtureOfGammasEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.PulseTrainEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.RescaleIntervalEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.SigmoidEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.SinusoidEquationForm[source]¶
Bases:
EquationForm
- class tvb.adapters.forms.equation_forms.SpatialEquationsEnum(value)[source]¶
Bases:
EquationsEnum
An enumeration.
- DISCRETE = <class 'tvb.datatypes.equations.DiscreteEquation'>¶
- GAUSSIAN = <class 'tvb.datatypes.equations.Gaussian'>¶
- MEXICAN_HAT = <class 'tvb.datatypes.equations.DoubleGaussian'>¶
- SIGMOID = <class 'tvb.datatypes.equations.Sigmoid'>¶
- class tvb.adapters.forms.equation_forms.SurfaceModelEquationsEnum(value)[source]¶
Bases:
TupleEnum
An enumeration.
- GAUSSIAN = <class 'tvb.datatypes.equations.Gaussian'>¶
- SIGMOID = <class 'tvb.datatypes.equations.Sigmoid'>¶
- class tvb.adapters.forms.equation_forms.TemporalEquationsEnum(value)[source]¶
Bases:
EquationsEnum
An enumeration.
- ALPHA = <class 'tvb.datatypes.equations.Alpha'>¶
- COSINE = <class 'tvb.datatypes.equations.Cosine'>¶
- GAUSSIAN = <class 'tvb.datatypes.equations.Gaussian'>¶
- GENERALIZEDSIGMOID = <class 'tvb.datatypes.equations.GeneralizedSigmoid'>¶
- LINEAR = <class 'tvb.datatypes.equations.Linear'>¶
- MEXICAN_HAT = <class 'tvb.datatypes.equations.DoubleGaussian'>¶
- PULSETRAIN = <class 'tvb.datatypes.equations.PulseTrain'>¶
- SIGMOID = <class 'tvb.datatypes.equations.Sigmoid'>¶
- SINUSOID = <class 'tvb.datatypes.equations.Sinusoid'>¶
- class tvb.adapters.forms.equation_forms.TransferVectorEquationsEnum(value)[source]¶
Bases:
EquationsEnum
An enumeration.
- ABSOLUTE = <class 'tvb.datatypes.equations.Absolute'>¶
- IDENTITY = <class 'tvb.datatypes.equations.Identity'>¶
- LINEAR = <class 'tvb.datatypes.equations.Linear'>¶
- LINEAR_INTERVAL = <class 'tvb.datatypes.equations.RescaleInterval'>¶
- LOGARITHM = <class 'tvb.datatypes.equations.Logarithm'>¶
equation_plot_forms
¶
form_with_ranges
¶
- class tvb.adapters.forms.form_with_ranges.FormWithRanges[source]¶
Bases:
Form
- CORTEX_FRAGMENT_KEY = 'cortex_fragment'¶
- COUPLING_FRAGMENT_KEY = 'coupling_fragment'¶
- MODEL_FRAGMENT_KEY = 'model_fragment'¶
- NOISE_FRAGMENT_KEY = 'noise_fragment'¶
integrator_forms
¶
- class tvb.adapters.forms.integrator_forms.IntegratorForm(is_dt_disabled=False)[source]¶
Bases:
Form
- fill_from_trait(trait: IntegratorViewModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.integrator_forms.IntegratorStochasticForm(is_dt_disabled=False)[source]¶
Bases:
IntegratorForm
- fill_from_trait(trait: IntegratorStochasticViewModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- fill_trait(datatype)[source]¶
Copies the value of the TraitFields to the corresponding Attr-ibutes of the given trait instance Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- template = 'form_fields/select_field.html'¶
model_forms
¶
- class tvb.adapters.forms.model_forms.CoombesByrne2DModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.CoombesByrneModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.DumontGutkinModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.Epileptor2DModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.EpileptorCodim3ModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.EpileptorCodim3SlowModModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.EpileptorModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.EpileptorRestingStateModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.GastSchmidtKnoscheSDModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.GastSchmidtKnoscheSFModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.Generic2dOscillatorModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.HopfieldModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.JansenRitModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.KuramotoModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.LarterBreakspearModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.LinearModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ModelForm(are_voi_disabled=False)[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.model_forms.ModelsEnum(value)[source]¶
Bases:
TupleEnum
An enumeration.
- COOMBES_BYRNE = <class 'tvb.simulator.models.infinite_theta.CoombesByrne'>¶
- COOMBES_BYRNE_2D = <class 'tvb.simulator.models.infinite_theta.CoombesByrne2D'>¶
- DUMONT_GUTKIN = <class 'tvb.simulator.models.infinite_theta.DumontGutkin'>¶
- EPILEPTOR = <class 'tvb.simulator.models.epileptor.Epileptor'>¶
- EPILEPTOR_2D = <class 'tvb.simulator.models.epileptor.Epileptor2D'>¶
- EPILEPTOR_CODIM_3 = <class 'tvb.simulator.models.epileptorcodim3.EpileptorCodim3'>¶
- EPILEPTOR_CODIM_3_SLOW = <class 'tvb.simulator.models.epileptorcodim3.EpileptorCodim3SlowMod'>¶
- EPILEPTOR_RS = <class 'tvb.simulator.models.epileptor_rs.EpileptorRestingState'>¶
- GAST_SCHMIDT_KNOSCHE_SD = <class 'tvb.simulator.models.infinite_theta.GastSchmidtKnosche_SD'>¶
- GAST_SCHMIDT_KNOSCHE_SF = <class 'tvb.simulator.models.infinite_theta.GastSchmidtKnosche_SF'>¶
- GENERIC_2D_OSCILLATOR = <class 'tvb.simulator.models.oscillator.Generic2dOscillator'>¶
- HOPFIELD = <class 'tvb.simulator.models.hopfield.Hopfield'>¶
- JANSEN_RIT = <class 'tvb.simulator.models.jansen_rit.JansenRit'>¶
- KURAMOTO = <class 'tvb.simulator.models.oscillator.Kuramoto'>¶
- LARTER_BREAKSPEAR = <class 'tvb.simulator.models.larter_breakspear.LarterBreakspear'>¶
- LINEAR = <class 'tvb.simulator.models.linear.Linear'>¶
- MONTBRIO_PAZO_ROXIN = <class 'tvb.simulator.models.infinite_theta.MontbrioPazoRoxin'>¶
- REDUCED_SET_FITZ_HUGH_NAGUMO = <class 'tvb.simulator.models.stefanescu_jirsa.ReducedSetFitzHughNagumo'>¶
- REDUCED_SET_HINDMARSH_ROSE = <class 'tvb.simulator.models.stefanescu_jirsa.ReducedSetHindmarshRose'>¶
- REDUCED_WONG_WANG = <class 'tvb.simulator.models.wong_wang.ReducedWongWang'>¶
- REDUCED_WONG_WANG_EXC_INH = <class 'tvb.simulator.models.wong_wang_exc_inh.ReducedWongWangExcInh'>¶
- SUP_HOPF = <class 'tvb.simulator.models.oscillator.SupHopf'>¶
- WILSON_COWAN = <class 'tvb.simulator.models.wilson_cowan.WilsonCowan'>¶
- ZERLAUT_FIRST_ORDER = <class 'tvb.simulator.models.zerlaut.ZerlautAdaptationFirstOrder'>¶
- ZERLAUT_SECOND_ORDER = <class 'tvb.simulator.models.zerlaut.ZerlautAdaptationSecondOrder'>¶
- ZETTERBERG_JANSEN = <class 'tvb.simulator.models.jansen_rit.ZetterbergJansen'>¶
- class tvb.adapters.forms.model_forms.MontbrioPazoRoxinModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ReducedSetFitzHughNagumoModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ReducedSetHindmarshRoseModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ReducedWongWangExcInhModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ReducedWongWangModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.SupHopfModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.WilsonCowanModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ZerlautAdaptationFirstOrderModelForm(are_voi_disabled=False)[source]¶
Bases:
ModelForm
- class tvb.adapters.forms.model_forms.ZerlautAdaptationSecondOrderModelForm(are_voi_disabled=False)[source]¶
monitor_forms
¶
- class tvb.adapters.forms.monitor_forms.BoldMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
MonitorForm
- class tvb.adapters.forms.monitor_forms.EEGMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
ProjectionMonitorForm
- class tvb.adapters.forms.monitor_forms.MEGMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
ProjectionMonitorForm
- class tvb.adapters.forms.monitor_forms.MonitorForm(session_stored_simulator=None, are_params_disabled=False)[source]¶
Bases:
Form
- class tvb.adapters.forms.monitor_forms.ProjectionMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
MonitorForm
- class tvb.adapters.forms.monitor_forms.SpatialAverageMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
MonitorForm
- class tvb.adapters.forms.monitor_forms.iEEGMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]¶
Bases:
ProjectionMonitorForm
noise_forms
¶
- class tvb.adapters.forms.noise_forms.MultiplicativeNoiseForm[source]¶
Bases:
NoiseForm
- fill_from_trait(trait: NoiseViewModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.noise_forms.NoiseForm[source]¶
Bases:
FormWithRanges
simulator_fragments
¶
- class tvb.adapters.forms.simulator_fragments.SimulatorFinalFragment(default_simulation_name='simulation_1')[source]¶
Bases:
ABCAdapterForm
- class tvb.adapters.forms.simulator_fragments.SimulatorIntegratorFragment[source]¶
Bases:
ABCAdapterForm
- fill_from_trait(trait: SimulatorAdapterModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.simulator_fragments.SimulatorModelFragment[source]¶
Bases:
ABCAdapterForm
- fill_from_trait(trait: SimulatorAdapterModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.simulator_fragments.SimulatorMonitorFragment(is_surface_simulation=False)[source]¶
Bases:
ABCAdapterForm
- fill_from_trait(trait: SimulatorAdapterModel) None [source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.simulator_fragments.SimulatorPSEConfigurationFragment(choices)[source]¶
Bases:
ABCAdapterForm
- class tvb.adapters.forms.simulator_fragments.SimulatorPSERangeFragment(pse_param1: RangeParameter, pse_param2: RangeParameter)[source]¶
Bases:
ABCAdapterForm
- GID_FIELD = 'pse_{}_guid'¶
- HI_FIELD = 'pse_{}_hi'¶
- KEY_PARAM1 = 'param1'¶
- KEY_PARAM2 = 'param2'¶
- LO_FIELD = 'pse_{}_lo'¶
- NAME_FIELD = 'pse_{}_name'¶
- STEP_FIELD = 'pse_{}_step'¶
- class tvb.adapters.forms.simulator_fragments.SimulatorRMFragment(surface_index=None, connectivity_gid=None)[source]¶
Bases:
FormWithRanges
- class tvb.adapters.forms.simulator_fragments.SimulatorStimulusFragment(is_surface_simulation=False)[source]¶
Bases:
ABCAdapterForm
- fill_from_trait(trait)[source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- class tvb.adapters.forms.simulator_fragments.SimulatorSurfaceFragment[source]¶
Bases:
ABCAdapterForm
surface_model_parameters_form
¶
- class tvb.adapters.forms.surface_model_parameters_form.SurfaceModelEquationsEnum(value)[source]¶
Bases:
TupleEnum
An enumeration.
- GAUSSIAN = <class 'tvb.datatypes.equations.Gaussian'>¶
- SIGMOID = <class 'tvb.datatypes.equations.Sigmoid'>¶
- class tvb.adapters.forms.surface_model_parameters_form.SurfaceModelParametersForm(model_params)[source]¶
Bases:
ABCAdapterForm
- NAME_EQATION_PARAMS_DIV = 'equation_params'¶
- default_equation = <class 'tvb.datatypes.equations.Gaussian'>¶
- equation_field_label = 'Equation'¶
- fill_from_trait(trait)[source]¶
Sets data for all traited fields from a trait instance. Note that FormFields are not TraitFields, so this does not work recursively Override to fill in sub-forms
- static get_filters()[source]¶
Should keep filters for the required_datatype. These filters are stored in DB at introspection time. :return: FilterChain
transfer_vector_form
¶
- class tvb.adapters.forms.transfer_vector_form.TransferVectorForm(model_params)[source]¶
Bases:
ABCAdapterForm
- default_transfer_function = <class 'tvb.datatypes.equations.Identity'>¶
- transfer_function_label = 'Transfer Function'¶