From f7bf215c10c254c2b974541b6b7629aab9ff747a Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Wed, 9 Dec 2020 00:39:30 +0000 Subject: [PATCH] made minor changes to distributions and checked whether they worked --- binarycpython/utils/distribution_functions.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/binarycpython/utils/distribution_functions.py b/binarycpython/utils/distribution_functions.py index 730e466a8..045d632fe 100644 --- a/binarycpython/utils/distribution_functions.py +++ b/binarycpython/utils/distribution_functions.py @@ -477,9 +477,8 @@ def sana12(M1, M2, a, P, amin, amax, x0, x1, p): arguments are M1, M2, a, Period P, amin, amax, x0=log P0, x1=log P1, p - example args: 10, 5, ?, P, ?, ?, -2, 12, -0.55 + example args: 10, 5, sep(M1, M2, P), sep, ?, -2, 12, -0.55 - # TODO: ? wtf. vague input # TODO: Fix this function! """ @@ -496,8 +495,8 @@ def sana12(M1, M2, a, P, amin, amax, x0, x1, p): xmin = LOG_LN_CONVERTER * math.log(calc_period_from_sep(M1, M2, amin)) xmax = LOG_LN_CONVERTER * math.log(calc_period_from_sep(M1, M2, amax)) - print("M1 M2 amin amax P x xmin xmax") - print(M1, M2, amin, amax, P, x, xmin, xmax) + # print("M1 M2 amin amax P x xmin xmax") + # print(M1, M2, amin, amax, P, x, xmin, xmax) # my $x0 = 0.15; # my $x1 = 3.5; @@ -626,8 +625,6 @@ def flatsections(x, opts): opts: list of dicts with settings for the flat sections x: location to calculate the y value - - TODO: figure out why it has to be a list of dict. why not just 1 """ c = 0 -- GitLab