Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def gstime_from_datetime(when_utc):
timetuple = timetuple_from_dt(when_utc)
return _gstime(jday(*timetuple))
def _propagate_only_position_ecef(self, timetuple):
"""Return position in the given date using ECEF coordinate system."""
position_eci, _ = self._propagator.propagate(*timetuple)
gmst = _gstime(jday(*timetuple))
return coordinate_systems.eci_to_ecef(position_eci, gmst)