emodelrunner.GUI_utils.interface

Main Interface.

Classes

GUI([fps, config_path])

GUI class.

class emodelrunner.GUI_utils.interface.GUI(fps=15, config_path='config/config_allsteps.ini')[source]

Bases: object

GUI class. Contains all frames and simulation.

simulation

contains BluePyOpt simulation (and cell) data

Type:

NeuronSimulation

play

if True, runs the simulation

Type:

bool

refresh_display_dt

timestep (s) for the display of figures

Type:

float

plot_3d

set to True to plot the cell shapes in 3D

Type:

bool

toolbar_on

set to True to display the matplotlib toolbars

Type:

bool

figsize

figures size. can be “small”, “medium”, or “large”.

Type:

str

root

root of the GUI

Type:

tk.Tk

style

style of the tkinter objects

Type:

ttk.Style

frames

main frames embedded in root

Type:

dict of ttk.Frames

reload

if True, the simulation has to be reloaded

Type:

bool

check_v_change()[source]

Checks the voltage change in the cell sections.

Update display if change is significant.

Returns:

True if the cell morphology with color-coded voltage figure has been updated

Return type:

bool

clear_voltage_figure()[source]

Clear the voltage figure.

config_has_changed()[source]

Stop the simulation when the user has changed configuration.

continue_simul()[source]

Unpause the simulation.

create_frames()[source]

Creates the frames.

end_simul()[source]

End the simulation.

static get_refresh_from_fps(fps)[source]

Get refresh rate from fps.

Parameters:

fps (float) – number of frames per second to be displayed

Returns:

refresh time (s)

Return type:

float

pause()[source]

Pause the simulation.

reload_figure_frame()[source]

Reload figure frame.

reload_params()[source]

Reload cell, protocol, simulation, figure frame.

run_simul(check_dt=1.5)[source]

Main loop for running simulation.

Parameters:

check_dt (float) – check for significant voltage change every check_dt (ms) (simulation time)

start()[source]

Start the simulation from beginning. Reload simulation config if needed.

update_figures()[source]

Update the figures.