Skip to content

Commit

Permalink
minor code style change
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Sep 15, 2024
1 parent e323123 commit 07571f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/services/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ def from_rocket_model(cls, rocket: Rocket) -> Self:
radius=rocket.radius,
mass=rocket.mass,
inertia=rocket.inertia,
power_off_drag=(
rocket.power_off_drag if rocket.power_off_drag else None
),
power_on_drag=(
rocket.power_on_drag if rocket.power_on_drag else None
),
power_off_drag=(None or rocket.power_off_drag),
power_on_drag=(None or rocket.power_on_drag),
center_of_mass_without_motor=rocket.center_of_mass_without_motor,
coordinate_system_orientation=rocket.coordinate_system_orientation.value.lower(),
)
Expand Down

0 comments on commit 07571f7

Please sign in to comment.