Skip to content

Commit 8d6d04e

Browse files
committed
feat: use values from text boxes for simulation
1 parent cbf7f16 commit 8d6d04e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

notebooks/Python_HH_version/ui_widget.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ def runHH(C_m, g_Na, g_K, g_L, E_Na, E_K, E_L, t_0, t_n, delta_t, I_inj_max, I_i
226226

227227
#create plot area widget and interact with HHmodel
228228
wid_plotArea=ipywidgets.interactive_output(runHH,{'C_m':slider_capacitance,
229-
'g_Na':slider_cond_Na, 'g_K':slider_cond_K, 'g_L':slider_cond_L,
230-
'E_Na':slider_E_Na, 'E_K':slider_E_K, 'E_L':slider_E_L,
229+
'g_Na':textBox_cond_Na, 'g_K':textBox_cond_K, 'g_L':textBox_cond_L,
230+
'E_Na':textBox_E_Na, 'E_K':textBox_E_K, 'E_L':textBox_E_L,
231231
't_0':time_start, 't_n':time_end, 'delta_t':time_step,
232-
'I_inj_max':slider_amplitude,'I_inj_width':slider_width,'I_inj_trans':slider_translation,
233-
'vc_delay':slider_delay,'vc_duration':slider_duration,'vc_condVoltage':slider_condVoltage,
234-
'vc_testVoltage':slider_testVoltage,'vc_returnVoltage':slider_returnVoltage,
232+
'I_inj_max':textBox_amplitude,'I_inj_width':textBox_width,'I_inj_trans':textBox_translation,
233+
'vc_delay':textBox_delay,'vc_duration':textBox_duration,'vc_condVoltage':textBox_condVoltage,
234+
'vc_testVoltage':textBox_testVoltage,'vc_returnVoltage':textBox_returnVoltage,
235235
'runMode':runMode_togglebtns})
236236

237237
#display the widgets and plot area

0 commit comments

Comments
 (0)