From e3fc2efa58d604acac9f3c3022c8c477e0f7cf12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BRIOL?= Date: Tue, 6 Sep 2022 17:58:09 +0200 Subject: [PATCH] Apply yapf hooks --- swot_simulator/orbit_propagator.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/swot_simulator/orbit_propagator.py b/swot_simulator/orbit_propagator.py index 2c48999..41767fc 100644 --- a/swot_simulator/orbit_propagator.py +++ b/swot_simulator/orbit_propagator.py @@ -444,13 +444,12 @@ def calculate_orbit(parameters: settings.Parameters, # If orbit is at low resolution, interpolate the orbit provided if np.mean(np.diff(time)) > 0.5: time_hr = np.arange(time[0], time[-1], 0.5, dtype=time.dtype) - lon, lat = pyinterp.orbit.interpolate( - lon, - lat, - time, - time_hr, - wgs=wgs, - half_window_size=50) + lon, lat = pyinterp.orbit.interpolate(lon, + lat, + time, + time_hr, + wgs=wgs, + half_window_size=50) time = time_hr # Cut orbit if more than an orbit cycle is provided @@ -489,11 +488,11 @@ def calculate_orbit(parameters: settings.Parameters, 1e6).astype("timedelta64[us]") lon, lat = pyinterp.orbit.interpolate(lon, - lat, - distance, - x_al, - wgs=wgs, - half_window_size=10) + lat, + distance, + x_al, + wgs=wgs, + half_window_size=10) return Orbit(parameters.height, lat, lon, np.sort(calculate_pass_time(lat,