Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Russell Stoneback <rstoneba@utdallas.edu>
  • Loading branch information
jklenzing and rstoneback committed Aug 6, 2021
1 parent aed2c5d commit 5608d99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pysatMissions/instruments/methods/orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _get_constants(planet='Earth'):
Parameters
----------
planet : string
planet : str
The name of the planet of interest.
(default='Earth')
Expand Down Expand Up @@ -69,7 +69,7 @@ def convert_to_keplerian(alt_periapsis, alt_apoapsis=None, planet='Earth'):
alt_apoapsis : float or NoneType
The highest altitude from the mean planet surface along the orbit (km)
If None, assumed to be equal to periapsis. (default=None)
planet : string
planet : str
The name of the planet of interest. Used for radial calculations and
mass.
(default='Earth')
Expand Down
2 changes: 1 addition & 1 deletion pysatMissions/instruments/missions_sgp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def load(fnames, tag=None, inst_id=None,
epoch = (dates[0] - dt.datetime(1949, 12, 31)).days
jd, _ = jday(dates[0].year, dates[0].month, dates[0].day, 0, 0, 0)

if inclination:
if inclination is not None:
# If an inclination is provided, specify by Keplerian elements
eccentricity, mean_motion = orbits.convert_to_keplerian(alt_periapsis,
alt_apoapsis)
Expand Down

0 comments on commit 5608d99

Please sign in to comment.