From 207b8e7f65ca501bf7a3492a67e6614580a60189 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Wed, 28 Sep 2022 10:12:28 -0400 Subject: [PATCH] Removed incorrect comment in Python code. --- demo/python/astronomy.py | 4 ++-- generate/template/astronomy.py | 4 ++-- source/python/astronomy/astronomy.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/demo/python/astronomy.py b/demo/python/astronomy.py index e93851eb..22511c94 100644 --- a/demo/python/astronomy.py +++ b/demo/python/astronomy.py @@ -5916,7 +5916,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): if limitDays < 0.0: # Search backward in time. if ya < 0.0: - ya += 360.0 # force searching forward in time, not backward + ya += 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt2 = est_dt + uncertainty if dt2 < limitDays: @@ -5925,7 +5925,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): else: # Search forward in time. if ya > 0.0: - ya -= 360.0 # force searching forward in time, not backward + ya -= 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt1 = est_dt - uncertainty if dt1 > limitDays: diff --git a/generate/template/astronomy.py b/generate/template/astronomy.py index afbc646e..ac9561be 100644 --- a/generate/template/astronomy.py +++ b/generate/template/astronomy.py @@ -3874,7 +3874,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): if limitDays < 0.0: # Search backward in time. if ya < 0.0: - ya += 360.0 # force searching forward in time, not backward + ya += 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt2 = est_dt + uncertainty if dt2 < limitDays: @@ -3883,7 +3883,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): else: # Search forward in time. if ya > 0.0: - ya -= 360.0 # force searching forward in time, not backward + ya -= 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt1 = est_dt - uncertainty if dt1 > limitDays: diff --git a/source/python/astronomy/astronomy.py b/source/python/astronomy/astronomy.py index e93851eb..22511c94 100644 --- a/source/python/astronomy/astronomy.py +++ b/source/python/astronomy/astronomy.py @@ -5916,7 +5916,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): if limitDays < 0.0: # Search backward in time. if ya < 0.0: - ya += 360.0 # force searching forward in time, not backward + ya += 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt2 = est_dt + uncertainty if dt2 < limitDays: @@ -5925,7 +5925,7 @@ def SearchMoonPhase(targetLon, startTime, limitDays): else: # Search forward in time. if ya > 0.0: - ya -= 360.0 # force searching forward in time, not backward + ya -= 360.0 est_dt = -(_MEAN_SYNODIC_MONTH * ya) / 360.0 dt1 = est_dt - uncertainty if dt1 > limitDays: