Skip to content

Commit

Permalink
ENH: providing lambda to sort() is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Apr 19, 2024
1 parent 28d0c62 commit 1b37951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -3626,7 +3626,7 @@ def add_controllers(self, controllers, t_init, t_end):
self.list += controller_node_list

def sort(self):
self.list.sort(key=(lambda node: node.t))
self.list.sort()

def merge(self):
"""Merge all the time nodes that have the same time. This is made to
Expand Down

0 comments on commit 1b37951

Please sign in to comment.