Skip to content

Commit 5f37e72

Browse files
committed
Fix code style issues with Black
1 parent b9ac8e6 commit 5f37e72

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,15 +1948,16 @@ def get_solution_at_time(self, t):
19481948
-------
19491949
solution : np.array
19501950
Solution state at time t. The array follows the format of the
1951-
solution array, with the first column being time like this:
1951+
solution array, with the first column being time like this:
19521952
[t, x, y, z, vx, vy, vz, e0, e1, e2, e3, omega1, omega2, omega3].
19531953
19541954
"""
19551955
time_index = find_closest(self.time, t)
19561956
if abs(self.time[time_index] - t) > 1e-5:
19571957
warnings.warn(
19581958
f"Time {t} not found in solution. Closest time is "
1959-
f"{self.time[time_index]}. Using closest time.", UserWarning
1959+
f"{self.time[time_index]}. Using closest time.",
1960+
UserWarning,
19601961
)
19611962
return self.solution_array[time_index, :]
19621963

tests/test_flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_get_solution_at_time(flight_calisto):
151151
flight_calisto : rocketpy.Flight
152152
Flight object to be tested. See the conftest.py file for more info
153153
regarding this pytest fixture.
154-
"""
154+
"""
155155
assert np.allclose(
156156
flight_calisto.get_solution_at_time(0),
157157
np.array([0, 0, 0, 0, 0, 0, 0, 0.99904822, -0.04361939, 0, 0, 0, 0, 0]),

0 commit comments

Comments
 (0)