From 7cf278a4675d990af17e02d3191821977ca9ca82 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Wed, 9 Dec 2020 00:39:55 +0000
Subject: [PATCH] minor changes

---
 binarycpython/utils/useful_funcs.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/binarycpython/utils/useful_funcs.py b/binarycpython/utils/useful_funcs.py
index bda0da212..83f43d0a2 100644
--- a/binarycpython/utils/useful_funcs.py
+++ b/binarycpython/utils/useful_funcs.py
@@ -22,7 +22,9 @@ YEARDY = 3.651995478818308811241877265275e02
 def calc_period_from_sep(M1, M2, sep):
     """
     calculate period from separation
-    args : M1, M2, separation (Rsun)
+    args : M1 (Msol), M2 (Msol), separation (Rsun)
+
+    returns the period (days)
     """
 
     return YEARDY * (sep / AURSUN) * math.sqrt(sep / (AURSUN * (M1 + M2)))
@@ -31,7 +33,9 @@ def calc_period_from_sep(M1, M2, sep):
 def calc_sep_from_period(M1, M2, period):
     """
     inverse of the above function
-    args : M1, M2, period (days)
+    args : M1 (Msol), M2 (Msol), period (days)
+
+    returns the separation (Rsun)
     """
 
     return AURSUN * (period * period * (M1 + M2) / (YEARDY * YEARDY)) ** (1.0 / 3.0)
-- 
GitLab