From e4c9c2fb31d66472a2ace1576613e0559a65470a Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Mon, 26 Jul 2021 19:39:15 +0100
Subject: [PATCH] fixed the M*S stuff

---
 binarycpython/utils/distribution_functions.py | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/binarycpython/utils/distribution_functions.py b/binarycpython/utils/distribution_functions.py
index 01c8b136b..67b9a4d0e 100644
--- a/binarycpython/utils/distribution_functions.py
+++ b/binarycpython/utils/distribution_functions.py
@@ -1269,9 +1269,15 @@ def build_q_table(options, m, p, verbosity=0):
         # qmin = options["ranges"]["M"][
         #     0
         # ]  # TODO: this lower range must not be lower than Mmin.
-        # print("build_q_table qmin: {}".format(qmin))
+
         qmin = options['Mmin']/options['M_1']
-        print("build_q_table qmin: {}".format(qmin))
+        verbose_print(
+            "\tM&S: build_q_table qmin: {}".format(
+                qmin,
+            ),
+            verbosity,
+            _MS_VERBOSITY_LEVEL,
+        )
 
         # qmax = maximum_mass_ratio_for_RLOF(options[m], options[p])
         # TODO: change this to the above
@@ -1284,7 +1290,13 @@ def build_q_table(options, m, p, verbosity=0):
 
         qeps = 1e-8  # small number but such that qeps+1 != 1
         if qeps + 1 == 1.0:
-            print("qeps (= {}) +1 == 1. Make qeps larger".format(qeps))
+            verbose_print(
+                "\tM&S: build_q_table: qeps (= {}) +1 == 1. Make qeps larger".format(
+                    qeps,
+                ),
+                verbosity,
+                _MS_VERBOSITY_LEVEL,
+            )
 
         if qmin >= qmax:
             # there may be NO binaries in this part of the parameter space:
-- 
GitLab