Skip to content

Commit

Permalink
Make the name of gstime() public
Browse files Browse the repository at this point in the history
It was unwarranted for me to mark `gstime()` private, because it’s one
of the routines officially documented in the paper on SGP4, and so
should be available in Python under exactly the same name.  This helps
with the software project described in pull request #31.
  • Loading branch information
brandon-rhodes committed Sep 3, 2018
1 parent c91fa55 commit a1e19e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sgp4/propagation.py
Expand Up @@ -1948,7 +1948,7 @@ def sgp4(satrec, tsince, whichconst=None):
* --------------------------------------------------------------------------- */
"""

def _gstime(jdut1):
def gstime(jdut1):

tut1 = (jdut1 - 2451545.0) / 36525.0;
temp = -6.2e-6* tut1 * tut1 * tut1 + 0.093104 * tut1 * tut1 + \
Expand All @@ -1961,6 +1961,10 @@ def _gstime(jdut1):

return temp;

# The routine was originally marked private, so make it available under
# the old name for compatibility:
_gstime = gstime

"""
/* -----------------------------------------------------------------------------
*
Expand Down

0 comments on commit a1e19e3

Please sign in to comment.