From 1837262d60a427a1f956105542fc0f51c7bba0b6 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Sat, 12 Jun 2021 19:42:52 +0100
Subject: [PATCH] Modified the grid generator to wrap the probdist in
 parentheses. This will prevent the if .. ==  else 1 to set the d_lnm1 to 1

---
 binarycpython/utils/grid.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 92332341c..4fb491b24 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -1943,7 +1943,7 @@ class Population:
             code_string += indent * (depth + 1) + "# Setting probabilities\n"
             code_string += (
                 indent * (depth + 1)
-                + "d{} = phasevol_{} * {}".format(
+                + "d{} = phasevol_{} * ({})".format(
                     grid_variable["name"],
                     grid_variable["name"],
                     grid_variable["probdist"],
-- 
GitLab