Commit 1837262d authored by David Hendriks's avatar David Hendriks
Browse files

Modified the grid generator to wrap the probdist in parentheses. This will...

Modified the grid generator to wrap the probdist in parentheses. This will prevent the if .. ==  else 1 to set the d_lnm1 to 1
parent 33178e74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"],