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

tvb.adapters.forms.coupling_forms.get_coupling_to_form_dict()[source]
tvb.adapters.forms.coupling_forms.get_form_for_coupling(coupling_class)[source]

equation_forms

class tvb.adapters.forms.equation_forms.AbsoluteEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.AlphaEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
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

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.DoubleExponentialEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.DoubleGaussianEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.EquationForm[source]

Bases: Form

fill_from_post(form_data)[source]
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

fill_trait_partially(datatype, fields=None)[source]
static get_subform_key()[source]

If the current form can be used as subform, this method should return the proper value.

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.FirstOrderVolterraEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.GammaEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.GaussianEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.GeneralizedSigmoidEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.IdentityEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.LinearEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.LogarithmEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.MixtureOfGammasEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.PulseTrainEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.RescaleIntervalEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.SigmoidEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
class tvb.adapters.forms.equation_forms.SinusoidEquationForm[source]

Bases: EquationForm

get_traited_equation()[source]
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'>
tvb.adapters.forms.equation_forms.get_equation_to_form_dict()[source]
tvb.adapters.forms.equation_forms.get_form_for_equation(equation_class)[source]
tvb.adapters.forms.equation_forms.get_ui_name_to_monitor_equation_dict()[source]

equation_plot_forms

class tvb.adapters.forms.equation_plot_forms.EquationPlotForm[source]

Bases: Form

fill_from_post(form_data)[source]
class tvb.adapters.forms.equation_plot_forms.EquationSpatialPlotForm[source]

Bases: Form

class tvb.adapters.forms.equation_plot_forms.EquationTemporalPlotForm[source]

Bases: Form

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'
static ensure_correct_prefix_for_param_name(param, prefix)[source]
abstract static get_params_configurable_in_phase_plane()[source]

Return a list with all parameter names that can be configured in Phase Plane viewer for the current model

static get_range_param_prefixes_dict()[source]
get_range_parameters(prefix)[source]

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

static get_subform_key()[source]

If the current form can be used as subform, this method should return the proper value.

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'
class tvb.adapters.forms.integrator_forms.NoiseTypesEnum(value)[source]

Bases: TupleEnum

An enumeration.

ADDITIVE = <class 'tvb.core.entities.file.simulator.view_model.AdditiveNoiseViewModel'>
MULTIPLICATIVE = <class 'tvb.core.entities.file.simulator.view_model.MultiplicativeNoiseViewModel'>
tvb.adapters.forms.integrator_forms.get_form_for_integrator(integrator_class)[source]
tvb.adapters.forms.integrator_forms.get_integrator_name_list()[source]
tvb.adapters.forms.integrator_forms.get_integrator_to_form_dict()[source]

model_forms

class tvb.adapters.forms.model_forms.CoombesByrne2DModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.CoombesByrneModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.DumontGutkinModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.Epileptor2DModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.EpileptorCodim3ModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.EpileptorCodim3SlowModModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.EpileptorModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.EpileptorRestingStateModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.GastSchmidtKnoscheSDModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.GastSchmidtKnoscheSFModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.Generic2dOscillatorModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.HopfieldModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.JansenRitModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.KuramotoModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.LarterBreakspearModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.LinearModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ModelForm(are_voi_disabled=False)[source]

Bases: FormWithRanges

fill_from_trait(trait: Model) 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

static get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

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

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ReducedSetFitzHughNagumoModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ReducedSetHindmarshRoseModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ReducedWongWangExcInhModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ReducedWongWangModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.StateVariableRangesForm[source]

Bases: Form

class tvb.adapters.forms.model_forms.SupHopfModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.WilsonCowanModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ZerlautAdaptationFirstOrderModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

class tvb.adapters.forms.model_forms.ZerlautAdaptationSecondOrderModelForm(are_voi_disabled=False)[source]

Bases: ZerlautAdaptationFirstOrderModelForm

class tvb.adapters.forms.model_forms.ZetterbergJansenModelForm(are_voi_disabled=False)[source]

Bases: ModelForm

get_params_configurable_in_phase_plane()[source]

Returns the configurable parameters in phase plane.

tvb.adapters.forms.model_forms.get_form_for_model(model_class)[source]
tvb.adapters.forms.model_forms.get_model_to_form_dict()[source]

monitor_forms

class tvb.adapters.forms.monitor_forms.BoldMonitorForm(session_stored_simulator=None, is_period_disabled=False)[source]

Bases: MonitorForm

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.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

fill_from_post(form_data)[source]
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.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

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

tvb.adapters.forms.monitor_forms.get_form_for_monitor(monitor_class)[source]
tvb.adapters.forms.monitor_forms.get_monitor_to_form_dict()[source]
tvb.adapters.forms.monitor_forms.get_monitor_to_ui_name_dict(surface)[source]
tvb.adapters.forms.monitor_forms.get_ui_name_to_monitor_dict(surface)[source]
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.AdditiveNoiseForm[source]

Bases: NoiseForm

get_range_parameters(prefix)[source]
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

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.noise_forms.NoiseForm[source]

Bases: FormWithRanges

static get_subform_key()[source]

If the current form can be used as subform, this method should return the proper value.

tvb.adapters.forms.noise_forms.get_form_for_noise(noise_class)[source]

simulator_fragments

class tvb.adapters.forms.simulator_fragments.SimulatorFinalFragment(default_simulation_name='simulation_1')[source]

Bases: ABCAdapterForm

fill_from_post(form_data)[source]
static is_burst_name_ok(burst_name)[source]
static prepare_final_fragment(simulator, burst_config, project_id, rendering_rules, setup_pse_url)[source]
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

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.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

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.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'
static fill_from_post(all_range_parameters: dict, **data: dict) tuple[source]
class tvb.adapters.forms.simulator_fragments.SimulatorRMFragment(surface_index=None, connectivity_gid=None)[source]

Bases: FormWithRanges

static prepare_cortex_fragment(simulator, rendering_rules, form_action_url, project_id)[source]
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

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

static prepare_stimulus_fragment(simulator, rendering_rules, is_surface_simulation, form_action_url, project_id)[source]
class tvb.adapters.forms.simulator_fragments.SimulatorSurfaceFragment[source]

Bases: ABCAdapterForm

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

static prepare_next_fragment_after_surface(simulator, rendering_rules, project_id, cortex_url, stimulus_url)[source]

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

static get_input_name()[source]

The Form’s input name for the required_datatype. Will be stored in DB at introspection time. :return: str

static get_required_datatype()[source]

Each Adapter’s computation is based on a main Datatype. This method should keep the class of it. This Datatype will be stored to DB at introspection time. :return: DataType class

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'