Skip to content

Commit

Permalink
Revision: discretization policy simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubo committed Aug 25, 2023
1 parent 2c1e802 commit 7f77d60
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions python/test/unit/test_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,9 @@ def get_morph_and_decor(
if num_segs < 3:
dec.discretization(
A.cv_policy(f"(fixed-per-branch {num_segs*num_cvs_per_seg})")
)
) # there is only branch for less than three segments
elif num_segs == 3:
dec.discretization(
A.cv_policy(
f"(replace (fixed-per-branch {num_cvs_per_seg} (branch 0)) "
+ f"(fixed-per-branch {num_cvs_per_seg} (branch 1)) "
+ f"(fixed-per-branch {num_cvs_per_seg} (branch 2)))"
)
)
dec.discretization(A.cv_policy(f"(fixed-per-branch {num_cvs_per_seg})"))
if num_segs == 1:
dec.place('"soma-end"', A.synapse("synapse_with_diffusion"), "syn_exc_A")
dec.place('"soma-end"', A.synapse("synapse_with_diffusion"), "syn_exc_B")
Expand Down

0 comments on commit 7f77d60

Please sign in to comment.