Skip to content

Commit 85e38b9

Browse files
Malmahrouqi3Gui-FernandesBR
authored andcommitted
BUG: copilot comments addressed
1 parent 8ade87c commit 85e38b9

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

rocketpy/rocket/rocket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,6 @@ def _add_controllers(self, controllers):
11691169
except TypeError:
11701170
self._controllers.append(controllers)
11711171

1172-
return controllers
1173-
11741172
def add_tail(
11751173
self, top_radius, bottom_radius, length, position, radius=None, name="Tail"
11761174
):

rocketpy/simulation/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def __simulate(self, verbose):
781781
controller(
782782
self.t,
783783
self.y_sol,
784-
self.solution[:-1],
784+
[step[1:] for step in self.solution[:-1]],
785785
self.sensors,
786786
self.env,
787787
)

0 commit comments

Comments
 (0)