entities
Package¶
context_model_parameters
¶
- class tvb.interfaces.web.entities.context_model_parameters.SurfaceContextModelParameters(surface_index, default_model, current_equation, current_model_param)[source]¶
Bases:
SpatialModel
This class contains methods which allows you to edit the model parameters for each vertex of the given surface.
- apply_equation(param_name, equation_instance)[source]¶
Applies an equation on the given model parameter.
- apply_focal_point(model_param, triangle_index)[source]¶
NOTE: Expects a triangle index
Adds a focal point in which should be applied the equation for the given model parameter.
- get_configure_info()[source]¶
- Returns:
a dictionary which contains information about the applied equations on the model parameters.
- get_data_for_model_param(param_name)[source]¶
Compute the equation configured for the current param_name. If no equation was set for param_name, return the default array.
- get_equation_for_parameter(parameter_name)[source]¶
- Returns:
the applied equation for the given model param OR None if there is no equation applied to this param.
- get_focal_points_for_parameter(parameter_name)[source]¶
- Returns:
the list of focal points for the equation applied in the given model param.
context_overlay
¶
context_selected_adapter
¶
Used by FlowController. It will store in current user’s session information about
context_simulator
¶
- class tvb.interfaces.web.entities.context_simulator.SimulatorContext[source]¶
Bases:
object
- KEY_BURST_CONFIG = 'burst_configuration'¶
- KEY_IS_SIMULATOR_BRANCH = 'is_simulator_branch'¶
- KEY_IS_SIMULATOR_COPY = 'is_simulator_copy'¶
- KEY_IS_SIMULATOR_LOAD = 'is_simulator_load'¶
- KEY_LAST_LOADED_FORM_URL = 'last_loaded_form_url'¶
- KEY_SIMULATOR_CONFIG = 'simulator_configuration'¶
- property burst_config¶
- init_session_at_burst_loading(burst_config: BurstConfiguration, simulator: SimulatorAdapterModel, last_loaded_form_url: str) None [source]¶
- init_session_at_copy_preparation(burst_config: BurstConfiguration, simulator: SimulatorAdapterModel, last_loaded_form_url: str) None [source]¶
- init_session_at_sim_config_from_zip(burst_config: BurstConfiguration, simulator: SimulatorAdapterModel, last_loaded_form_url: str) None [source]¶
- init_session_at_sim_reset(burst_config: BurstConfiguration, last_loaded_form_url: str) None [source]¶
- property last_loaded_fragment_url¶
- property logged_user¶
- property project¶
- set_burst_config(burst_config: BurstConfiguration | None = None) None [source]¶
Create a new burst instance only if one does not exist in the context.
- set_simulator(simulator: SimulatorAdapterModel | None = None) None [source]¶
Create a new simulator instance only if one does not exist in the context.
- property simulator¶
context_transfer_vector
¶
- class tvb.interfaces.web.entities.context_transfer_vector.TransferVectorContext(current_transfer_function, current_model_param, current_connectivity_measure)[source]¶
Bases:
SpatialModel