From 7f77d60ae200f4afb989ce20c7f3e3d25d226ca6 Mon Sep 17 00:00:00 2001 From: Jannik Luboeinski Date: Fri, 25 Aug 2023 19:51:59 +0200 Subject: [PATCH] Revision: discretization policy simplified --- python/test/unit/test_diffusion.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/python/test/unit/test_diffusion.py b/python/test/unit/test_diffusion.py index a873eff4e6..f8fd89667a 100644 --- a/python/test/unit/test_diffusion.py +++ b/python/test/unit/test_diffusion.py @@ -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")