Skip to content

Commit

Permalink
black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Nov 3, 2023
1 parent b05aa93 commit 05888b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/neurax_vs_neuron/test_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _run_neurax(i_delay, i_dur, i_amp, dt, t_max):
branch.comp(0.0).stimulate(nx.step_current(i_delay, i_dur, i_amp, time_vec))
branch.comp(0.0).record()
branch.comp(1.0).record()

voltages = nx.integrate(branch, delta_t=dt)

return voltages
Expand Down
2 changes: 1 addition & 1 deletion tests/neurax_vs_neuron/test_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _run_neurax(i_delay, i_dur, i_amp, dt, t_max):
cell.branch(0).comp(0.0).record()
cell.branch(1).comp(1.0).record()
cell.branch(2).comp(1.0).record()

voltages = nx.integrate(cell, delta_t=dt)
return voltages

Expand Down
6 changes: 4 additions & 2 deletions tests/test_swc.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ def test_swc_voltages():
cell.set_states("h", 0.4889)
cell.set_states("n", 0.3644787)

cell.branch(1).comp(0.05).stimulate(nx.step_current(i_delay, i_dur, i_amp, time_vec))
cell.branch(1).comp(0.05).stimulate(
nx.step_current(i_delay, i_dur, i_amp, time_vec)
)
for i in trunk_inds + tuft_inds + basal_inds:
cell.branch(i).comp(0.05).record()

voltages_neurax = nx.integrate(cell, delta_t=dt)

################### NEURON #################
Expand Down

0 comments on commit 05888b3

Please sign in to comment.