From b33833a4a513551310d6e4c510a36febc7bcad01 Mon Sep 17 00:00:00 2001 From: dh00601 <dh00601@surrey.ac.uk> Date: Sun, 26 Sep 2021 15:58:07 +0100 Subject: [PATCH] tried to fix M&S issue --- binarycpython/utils/distribution_functions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binarycpython/utils/distribution_functions.py b/binarycpython/utils/distribution_functions.py index 67b9a4d0e..334931a27 100644 --- a/binarycpython/utils/distribution_functions.py +++ b/binarycpython/utils/distribution_functions.py @@ -20,7 +20,6 @@ Tasks: - TODO: make an n-part power law that's general enough to fix the three part and the 4 part """ -import gc import math import json @@ -1379,11 +1378,11 @@ def build_q_table(options, m, p, verbosity=0): # with a flat distribution up to 1.0. if qs[0] == 1.0: qs[0] = 1.0 - 1e-6 - qs[1] = 1 + qs.append(1) qdata[qs[0]] = 1 qdata[qs[1]] = 1 else: - qs[1] = 1.0 + qs.append(1) qdata[qs[1]] = qs[0] # We actually should do the extrapolation now. -- GitLab