The Virtual Brain Project

Table Of Contents

Previous topic

controllers Package

Next topic

help Package

This Page

burst Package

base_controller

class tvb.interfaces.web.controllers.burst.base_controller.BurstBaseController[source]

Bases: tvb.interfaces.web.controllers.base_controller.BaseController

fill_default_attributes(template_dictionary, subsection='burst')[source]

dynamic_model_controller

class tvb.interfaces.web.controllers.burst.dynamic_model_controller.Dynamic(model=None, integrator=None)[source]

Bases: builtins.object

Groups a model and an integrator.

class tvb.interfaces.web.controllers.burst.dynamic_model_controller.DynamicModelController[source]

Bases: tvb.interfaces.web.controllers.burst.base_controller.BurstBaseController

KEY_CACHED_DYNAMIC_MODEL = 'cache.DynamicModelController'
LOGGER = <Logger tvb.interfaces.web.controllers.burst.dynamic_model_controller (DEBUG)>
dynamic_detail(dynamic_id)[source]
fill_default_attributes(param)[source]
get_cached_dynamic(dynamic_gid)[source]

Creating the model per request will be expensive. So we cache it in session. If there is nothing cached it returns the default dynamic.

graph_changed(dynamic_gid, graph_state)[source]
index()[source]
integrator_changed(dynamic_gid, **kwargs)[source]
integrator_parameters_changed(dynamic_gid, type, **param)[source]
model_changed(dynamic_gid, name)[source]

Resets the phase plane and returns the ui model for the slider area.

parameters_changed(dynamic_gid, params)[source]
refresh_subform(dynamic_gid, field_value, mapping_key)[source]
submit(dynamic_gid, dynamic_name)[source]
trajectories(dynamic_gid, starting_points, integration_steps)[source]
class tvb.interfaces.web.controllers.burst.dynamic_model_controller.SessionCache[source]

Bases: builtins.object

A simple cache backed by the current cherrypy session. It does not expire it’s contents.

SESSION_KEY = 'session_cache'

exploration_controller

class tvb.interfaces.web.controllers.burst.exploration_controller.ParameterExplorationController[source]

Bases: tvb.interfaces.web.controllers.base_controller.BaseController

Controller to handle PSE actions.

draw_discrete_exploration(datatype_group_gid, back_page, color_metric=None, size_metric=None)[source]

Create new data for when the user chooses to refresh from the UI.

draw_isocline_exploration(datatype_group_gid)[source]
get_default_pse_viewer(datatype_group_gid)[source]

For a given DataTypeGroup, check first if the discrete PSE is compatible. If this is not the case fallback to the continous PSE viewer. If none are available return: None.

get_metric_matrix(datatype_group_gid, metric_name=None)[source]
get_node_matrix(datatype_group_gid)[source]
get_series_array_discrete(datatype_group_gid, back_page, color_metric=None, size_metric=None)[source]

Create new data for when the user chooses to refresh from the UI.

pse_error(adapter_name, message)[source]

matjax

Functions responsible for collecting and rendering the descriptions and the documentations of the dynamic models in Simulator/Phase Plane.

tvb.interfaces.web.controllers.burst.matjax.configure_matjax_doc(available_models)[source]

Builds a list containing the model names, inline descriptions and descriptions, which will be displayed in the Simulation/Phase Plane section.

noise_configuration_controller

class tvb.interfaces.web.controllers.burst.noise_configuration_controller.NoiseConfigurationController[source]

Bases: tvb.interfaces.web.controllers.burst.base_controller.BurstBaseController

Controller class for placing noise parameters in nodes.

static group_noise_array_by_state_var(noise_values, state_vars, number_of_regions)[source]
index()[source]
static init_noise_config_values(model, integrator, connectivity)[source]

Initialize a state var x number of nodes array with noise values.

submit(node_values)[source]

Submit noise dispersions :param node_values: A map from state variable names to noise dispersion arrays. Ex {‘V’: [1,2...74]}

region_model_parameters_controller

class tvb.interfaces.web.controllers.burst.region_model_parameters_controller.RegionsModelParametersController[source]

Bases: tvb.interfaces.web.controllers.burst.base_controller.BurstBaseController

Controller class for placing model parameters in nodes.

index()[source]
no_dynamics_page()[source]
submit_model_parameters(node_values)[source]

Collects the model parameters values from all the models used for the connectivity nodes. Assumes that the array indices are consistent with the node order.