Skip to content

Commit 2e16b2c

Browse files
aZira371claude
andcommitted
STY: apply ruff format/import-sort fixes across mission architecture files
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 1a88048 commit 2e16b2c

6 files changed

Lines changed: 50 additions & 55 deletions

File tree

docs/multistage_example.ipynb

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"id": "9a63283cbaf04dbcab1f6479b197f3a8",
2929
"metadata": {
3030
"execution": {
31-
"iopub.execute_input": "2026-07-12T18:50:38.045030Z",
32-
"iopub.status.busy": "2026-07-12T18:50:38.044833Z",
33-
"iopub.status.idle": "2026-07-12T18:50:39.630628Z",
34-
"shell.execute_reply": "2026-07-12T18:50:39.629827Z"
31+
"iopub.execute_input": "2026-07-12T18:58:26.682661Z",
32+
"iopub.status.busy": "2026-07-12T18:58:26.682410Z",
33+
"iopub.status.idle": "2026-07-12T18:58:28.250548Z",
34+
"shell.execute_reply": "2026-07-12T18:58:28.249705Z"
3535
}
3636
},
3737
"outputs": [],
@@ -75,10 +75,10 @@
7575
"id": "72eea5119410473aa328ad9291626812",
7676
"metadata": {
7777
"execution": {
78-
"iopub.execute_input": "2026-07-12T18:50:39.632911Z",
79-
"iopub.status.busy": "2026-07-12T18:50:39.632647Z",
80-
"iopub.status.idle": "2026-07-12T18:50:39.644580Z",
81-
"shell.execute_reply": "2026-07-12T18:50:39.643972Z"
78+
"iopub.execute_input": "2026-07-12T18:58:28.252789Z",
79+
"iopub.status.busy": "2026-07-12T18:58:28.252520Z",
80+
"iopub.status.idle": "2026-07-12T18:58:28.264304Z",
81+
"shell.execute_reply": "2026-07-12T18:58:28.263591Z"
8282
}
8383
},
8484
"outputs": [],
@@ -121,10 +121,10 @@
121121
"id": "10185d26023b46108eb7d9f57d49d2b3",
122122
"metadata": {
123123
"execution": {
124-
"iopub.execute_input": "2026-07-12T18:50:39.646604Z",
125-
"iopub.status.busy": "2026-07-12T18:50:39.646438Z",
126-
"iopub.status.idle": "2026-07-12T18:50:39.722105Z",
127-
"shell.execute_reply": "2026-07-12T18:50:39.721368Z"
124+
"iopub.execute_input": "2026-07-12T18:58:28.266133Z",
125+
"iopub.status.busy": "2026-07-12T18:58:28.265982Z",
126+
"iopub.status.idle": "2026-07-12T18:58:28.338925Z",
127+
"shell.execute_reply": "2026-07-12T18:58:28.338299Z"
128128
}
129129
},
130130
"outputs": [
@@ -303,10 +303,10 @@
303303
"id": "7623eae2785240b9bd12b16a66d81610",
304304
"metadata": {
305305
"execution": {
306-
"iopub.execute_input": "2026-07-12T18:50:39.723705Z",
307-
"iopub.status.busy": "2026-07-12T18:50:39.723568Z",
308-
"iopub.status.idle": "2026-07-12T18:50:39.727154Z",
309-
"shell.execute_reply": "2026-07-12T18:50:39.726569Z"
306+
"iopub.execute_input": "2026-07-12T18:58:28.340702Z",
307+
"iopub.status.busy": "2026-07-12T18:58:28.340550Z",
308+
"iopub.status.idle": "2026-07-12T18:58:28.344242Z",
309+
"shell.execute_reply": "2026-07-12T18:58:28.343635Z"
310310
}
311311
},
312312
"outputs": [
@@ -360,10 +360,10 @@
360360
"id": "b118ea5561624da68c537baed56e602f",
361361
"metadata": {
362362
"execution": {
363-
"iopub.execute_input": "2026-07-12T18:50:39.728771Z",
364-
"iopub.status.busy": "2026-07-12T18:50:39.728654Z",
365-
"iopub.status.idle": "2026-07-12T18:50:39.733426Z",
366-
"shell.execute_reply": "2026-07-12T18:50:39.732864Z"
363+
"iopub.execute_input": "2026-07-12T18:58:28.345736Z",
364+
"iopub.status.busy": "2026-07-12T18:58:28.345614Z",
365+
"iopub.status.idle": "2026-07-12T18:58:28.350366Z",
366+
"shell.execute_reply": "2026-07-12T18:58:28.349767Z"
367367
}
368368
},
369369
"outputs": [],
@@ -449,10 +449,10 @@
449449
"id": "504fb2a444614c0babb325280ed9130a",
450450
"metadata": {
451451
"execution": {
452-
"iopub.execute_input": "2026-07-12T18:50:39.734911Z",
453-
"iopub.status.busy": "2026-07-12T18:50:39.734801Z",
454-
"iopub.status.idle": "2026-07-12T18:50:39.737403Z",
455-
"shell.execute_reply": "2026-07-12T18:50:39.736812Z"
452+
"iopub.execute_input": "2026-07-12T18:58:28.351804Z",
453+
"iopub.status.busy": "2026-07-12T18:58:28.351691Z",
454+
"iopub.status.idle": "2026-07-12T18:58:28.354012Z",
455+
"shell.execute_reply": "2026-07-12T18:58:28.353565Z"
456456
}
457457
},
458458
"outputs": [],
@@ -475,7 +475,7 @@
475475
" \"payload\",\n",
476476
" terminate_on_apogee=False,\n",
477477
" max_time=700,\n",
478-
")\n"
478+
")"
479479
]
480480
},
481481
{
@@ -492,10 +492,10 @@
492492
"id": "b43b363d81ae4b689946ece5c682cd59",
493493
"metadata": {
494494
"execution": {
495-
"iopub.execute_input": "2026-07-12T18:50:39.738852Z",
496-
"iopub.status.busy": "2026-07-12T18:50:39.738727Z",
497-
"iopub.status.idle": "2026-07-12T18:50:39.741385Z",
498-
"shell.execute_reply": "2026-07-12T18:50:39.740782Z"
495+
"iopub.execute_input": "2026-07-12T18:58:28.355712Z",
496+
"iopub.status.busy": "2026-07-12T18:58:28.355572Z",
497+
"iopub.status.idle": "2026-07-12T18:58:28.358141Z",
498+
"shell.execute_reply": "2026-07-12T18:58:28.357607Z"
499499
}
500500
},
501501
"outputs": [
@@ -538,10 +538,10 @@
538538
"id": "c3933fab20d04ec698c2621248eb3be0",
539539
"metadata": {
540540
"execution": {
541-
"iopub.execute_input": "2026-07-12T18:50:39.742895Z",
542-
"iopub.status.busy": "2026-07-12T18:50:39.742778Z",
543-
"iopub.status.idle": "2026-07-12T18:50:40.058278Z",
544-
"shell.execute_reply": "2026-07-12T18:50:40.057650Z"
541+
"iopub.execute_input": "2026-07-12T18:58:28.359712Z",
542+
"iopub.status.busy": "2026-07-12T18:58:28.359592Z",
543+
"iopub.status.idle": "2026-07-12T18:58:28.667716Z",
544+
"shell.execute_reply": "2026-07-12T18:58:28.666945Z"
545545
}
546546
},
547547
"outputs": [
@@ -587,10 +587,10 @@
587587
"id": "8309879909854d7188b41380fd92a7c3",
588588
"metadata": {
589589
"execution": {
590-
"iopub.execute_input": "2026-07-12T18:50:40.059970Z",
591-
"iopub.status.busy": "2026-07-12T18:50:40.059826Z",
592-
"iopub.status.idle": "2026-07-12T18:50:40.186219Z",
593-
"shell.execute_reply": "2026-07-12T18:50:40.185502Z"
590+
"iopub.execute_input": "2026-07-12T18:58:28.669442Z",
591+
"iopub.status.busy": "2026-07-12T18:58:28.669290Z",
592+
"iopub.status.idle": "2026-07-12T18:58:28.950327Z",
593+
"shell.execute_reply": "2026-07-12T18:58:28.949563Z"
594594
}
595595
},
596596
"outputs": [
@@ -640,10 +640,10 @@
640640
"id": "bd79bb8f",
641641
"metadata": {
642642
"execution": {
643-
"iopub.execute_input": "2026-07-12T18:50:40.187923Z",
644-
"iopub.status.busy": "2026-07-12T18:50:40.187785Z",
645-
"iopub.status.idle": "2026-07-12T18:50:40.191859Z",
646-
"shell.execute_reply": "2026-07-12T18:50:40.191304Z"
643+
"iopub.execute_input": "2026-07-12T18:58:28.952246Z",
644+
"iopub.status.busy": "2026-07-12T18:58:28.952078Z",
645+
"iopub.status.idle": "2026-07-12T18:58:28.956732Z",
646+
"shell.execute_reply": "2026-07-12T18:58:28.956019Z"
647647
}
648648
},
649649
"outputs": [
@@ -677,9 +677,7 @@
677677
" ),\n",
678678
" )\n",
679679
")\n",
680-
"demo_executor = MissionExecutor(\n",
681-
" mission=demo_mission, environment=env, rail_length=5.2\n",
682-
")\n",
680+
"demo_executor = MissionExecutor(mission=demo_mission, environment=env, rail_length=5.2)\n",
683681
"\n",
684682
"try:\n",
685683
" demo_executor.execute()\n",

tests/unit/body/test_body.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from rocketpy.body import BodyLike, FlightBody, RocketAdapter
66

7-
87
# ---------------------------------------------------------------------------
98
# Helpers / fixtures
109
# ---------------------------------------------------------------------------

tests/unit/mission/test_mission.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
)
2727
from rocketpy.simulation import Event
2828

29-
3029
# ---------------------------------------------------------------------------
3130
# Helpers
3231
# ---------------------------------------------------------------------------
@@ -676,7 +675,9 @@ def __init__(self, rocket, environment, rail_length, **kwargs):
676675
initial_solution = kwargs.get("initial_solution")
677676
if hasattr(initial_solution, "initial_solution"):
678677
initial_solution = initial_solution.initial_solution
679-
self.initial_solution = list(initial_solution) if initial_solution else [0.0]
678+
self.initial_solution = (
679+
list(initial_solution) if initial_solution else [0.0]
680+
)
680681
self.t_initial = self.initial_solution[0]
681682
self.apogee = 100.0
682683
self.impact_velocity = -5.0
@@ -788,7 +789,9 @@ def test_run_without_root_vehicle(self):
788789
_make_stage(name="stage_1", body=_make_rocket_adapter("stage_rocket"))
789790
)
790791
mission.add_deployable(
791-
_make_deployable(name="payload", body=_make_rocket_adapter("payload_rocket"))
792+
_make_deployable(
793+
name="payload", body=_make_rocket_adapter("payload_rocket")
794+
)
792795
)
793796
executor = MissionExecutor(
794797
mission=mission,

tests/unit/mission/test_mission_result.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ def __init__(self, flights):
129129
def trajectories_3d(self, legend=None):
130130
calls["legend"] = legend
131131

132-
monkeypatch.setattr(
133-
"rocketpy.plots.CompareFlights", _FakeCompareFlights
134-
)
132+
monkeypatch.setattr("rocketpy.plots.CompareFlights", _FakeCompareFlights)
135133

136134
root_flight = _FakeFlight()
137135
branch = _make_branch_result("stage_1")

tests/unit/rocket/test_rocket_attachment_host.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from rocketpy import Rocket
6-
from rocketpy.body import RocketAdapter
6+
from rocketpy.body import FlightBody, RocketAdapter
77
from rocketpy.mission import (
88
Attachment,
99
Deployable,
@@ -12,8 +12,6 @@
1212
Stage,
1313
StageSeparationEvent,
1414
)
15-
from rocketpy.body import FlightBody
16-
1715

1816
# ---------------------------------------------------------------------------
1917
# Helpers

tests/unit/simulation/test_flight_branch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from rocketpy.simulation import FlightBranch
66

7-
87
# ---------------------------------------------------------------------------
98
# Helpers
109
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)