Skip to content

Commit

Permalink
and linters contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Jan 21, 2025
1 parent bc4c845 commit 6525d14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion python/example/network_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def make_cable_cell(gid):
decor = (
A.decor()
# Put hh dynamics on soma, and passive properties on the dendrites.
.paint('"soma"', A.density("hh")).paint('"dend"', A.density("pas"))
.paint('"soma"', A.density("hh"))
.paint('"dend"', A.density("pas"))
# (4) Attach a single synapse.
.place('"synapse_site"', A.synapse("expsyn"), "syn")
# Attach a detector with threshold of -10 mV.
Expand Down
3 changes: 2 additions & 1 deletion python/example/network_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def make_cable_cell(gid):
decor = (
A.decor()
# Put hh dynamics on soma, and passive properties on the dendrites.
.paint('"soma"', A.density("hh")).paint('"dend"', A.density("pas"))
.paint('"soma"', A.density("hh"))
.paint('"dend"', A.density("pas"))
# (4) Attach a single synapse.
.place('"synapse_site"', A.synapse("expsyn"), "syn")
# Attach a detector with threshold of -10 mV.
Expand Down
3 changes: 2 additions & 1 deletion python/example/network_ring_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def make_cable_cell(gid):
decor = (
A.decor()
# Put hh dynamics on soma, and passive properties on the dendrites.
.paint('"soma"', A.density("hh")).paint('"dend"', A.density("pas"))
.paint('"soma"', A.density("hh"))
.paint('"dend"', A.density("pas"))
# (4) Attach a single synapse.
.place('"synapse_site"', A.synapse("expsyn"), "syn")
# Attach a detector with threshold of -10 mV.
Expand Down
4 changes: 2 additions & 2 deletions python/test/unit/test_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def simulate_and_test_diffusion(
r_3 = l_3 = 0 # set radius and length of third segment to zero
r_4 = l_4 = 0 # set radius and length of fourth segment to zero
morph, dec, labels = self.get_morph_and_decor_2_seg(l_1, l_2, r_1, r_2)
length_soma_cv = (l_1 + l_2) / (
2 * num_cvs_per_seg
length_soma_cv = (
(l_1 + l_2) / (2 * num_cvs_per_seg)
) # consider 'fixed-per-branch' policy for two segments, which only form one branch
# use 'fixed-per-branch' policy to obtain exact number of CVs; there's one branch here
cvp = A.cv_policy(f"(fixed-per-branch {2 * num_cvs_per_seg})")
Expand Down

0 comments on commit 6525d14

Please sign in to comment.