burst Package

base_controller

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

Bases: BaseController

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

Fill into ‘template_dictionary’ data that we want to have ready in UI.

dynamic_model_controller

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

Bases: object

Groups a model and an integrator.

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

Bases: BurstBaseController

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

Fill into ‘template_dictionary’ data that we want to have ready in UI.

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]

/ Path response Redirects to /tvb

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

/ Path response Redirects to /tvb

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: BurstBaseController

Controller class for placing model parameters in nodes.

index()[source]

/ Path response Redirects to /tvb

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.

transfer_vector_controller

class tvb.interfaces.web.controllers.burst.transfer_vector_controller.TransferVectorController[source]

Bases: SpatioTemporalController

Controller class for Applying a transfer function plus a ConnectivityMeasure DT and producing a Spatial Vector distribution on Model parameters

apply_transfer_function()[source]
base_url = '/burst/transfer/'
clear_histogram()[source]
fill_default_attributes(template_dictionary, subsection='transfer')[source]

Overwrite base controller to add required parameters for adapter templates.

get_equation_chart(**form_data)[source]

Returns the html which contains the plot with the equation selected by the user for a certain model param.

index()[source]

Displays the main page for the spatio temporal section.

no_connectivity_measure_page()[source]
set_connectivity_measure(connectivity_measure)[source]
set_model_parameter(model_param)[source]
set_transfer_function_param(**param)[source]
submit_model_parameter(submit_action='cancel_action')[source]
title = 'Apply Spatial Vector on Model Parameter(s)'