emodelrunner.GUI_utils.frames¶
Frame Classes for the GUI.
Functions
|
Accepts only a float or '' as entry. |
|
Accepts only digits or '' as entry. |
Classes
|
Frame containing buttons to (re-)start and pause simulation. |
|
Frame containing all inputs. |
|
Frame containing choices for figure display, such as 2d/3d or enabling toolbar. |
|
Frame containing the morphology and the voltage figures. |
|
Frame containing holding stimulus value input. |
|
Frame containing Figures and launching button. |
|
Frame containing protocol-related inputs. |
|
Frame containing an entry for input. |
|
Frame containing step stimulus-related input. |
|
Frame containing step stimulus value input. |
|
Frame containing all inputs. |
|
Matplotlib toolbar class. |
- class emodelrunner.GUI_utils.frames.FrameButtons(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing buttons to (re-)start and pause simulation.
- class emodelrunner.GUI_utils.frames.FrameConfig(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing all inputs.
- class emodelrunner.GUI_utils.frames.FrameConfigFig(*args: Any, **kwargs: Any)[source]¶
Bases:
LabelFrame
Frame containing choices for figure display, such as 2d/3d or enabling toolbar.
- load_figsize_value(gui)[source]¶
Change figure size in gui and reload figure frame.
- Parameters:
gui (GUI) – main class containing main frames and simulation
- class emodelrunner.GUI_utils.frames.FrameFigures(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing the morphology and the voltage figures.
- check_change(root, simulation)[source]¶
Checks the voltage change in the cell sections.
Update display if change is significant.
- Parameters:
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
- Returns:
True if the cell morphology with color-coded voltage figure has been updated
- Return type:
bool
- display(root, simulation, morph_lines=None)[source]¶
Update both figures display.
- Parameters:
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
morph_lines (list of matplotlib.Line2D) – list of lines to be actualized if they already have been computed, else None
- static get_interactive_3d_rotation(canva, ax)[source]¶
Connect events to canva to enable rotative 3d plots with mouse.
- Parameters:
canva (matplotlib.backends.backend_tkagg.FigureCanvasTkAgg) – canva
ax (matplotlib.axes.Axes) – axes
- set_axis(x_min=0, x_max=3000, y_min=-90, y_max=40)[source]¶
Set the voltage figure’s axis.
- Parameters:
x_min (float) – min value on x axis
x_max (float) – max value on x axis
y_min (float) – min value on y axis
y_max (float) – max value on y axis
- set_fig_morph_display(fig)[source]¶
Set shape figure size and adjustment.
- Parameters:
fig (matplotlib.figure.Figure) – figure to adjust
- set_fig_volt_display(fig)[source]¶
Set shape figure size and adjustment.
- Parameters:
fig (matplotlib.figure.Figure) – figure to adjust
- update_syn_display(root, simulation, size_scatter=6)[source]¶
Update the display of the synapses on the right figure.
- Parameters:
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
size_scatter (int) – size of synapses for scatter plot
- class emodelrunner.GUI_utils.frames.FrameHoldStimulus(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing holding stimulus value input.
- class emodelrunner.GUI_utils.frames.FrameMain(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing Figures and launching button.
- check_change(root, simulation)[source]¶
Checks the voltage change in the cell sections.
Update display if change is significant.
- Parameters:
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
- Returns:
True if the cell morphology with color-coded voltage figure has been updated
- Return type:
bool
- display(root, simulation)[source]¶
Update figures display.
- Parameters:
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
- update_syn_display(root, simulation)[source]¶
Update the display of the synapses on the right figure.
- Parameters:
Args –
root (tk.Tk) – root of the GUI
simulation (NeuronSimulation) – contains simulation (and cell) data
- class emodelrunner.GUI_utils.frames.FrameProtocols(*args: Any, **kwargs: Any)[source]¶
Bases:
LabelFrame
Frame containing protocol-related inputs.
- class emodelrunner.GUI_utils.frames.FrameSetIntFromEntry(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing an entry for input.
- class emodelrunner.GUI_utils.frames.FrameStepProtocol(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing step stimulus-related input.
- class emodelrunner.GUI_utils.frames.FrameStepStimulus(*args: Any, **kwargs: Any)[source]¶
Bases:
Frame
Frame containing step stimulus value input.
- class emodelrunner.GUI_utils.frames.FrameSynapses(*args: Any, **kwargs: Any)[source]¶
Bases:
LabelFrame
Frame containing all inputs.
- static check_variable(x)[source]¶
Returns the variable if it is a positive int. Returns 0 if not.
- Parameters:
x (str) – variable to check
- Returns:
the variable if it is a positive int
- Return type:
int
- load_current_mtype_list(gui)[source]¶
Load current mtype list and netstim params.
- Parameters:
gui (GUI) – main class containing main frames and simulation
- class emodelrunner.GUI_utils.frames.ToolbarCustom(*args: Any, **kwargs: Any)[source]¶
Bases:
NavigationToolbar2TkAgg
Matplotlib toolbar class.