From 07571f77edb42bab43b928a3a0d0a39a0a4b139e Mon Sep 17 00:00:00 2001 From: GabrielBarberini Date: Sun, 15 Sep 2024 00:13:08 -0300 Subject: [PATCH] minor code style change --- lib/services/rocket.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/services/rocket.py b/lib/services/rocket.py index c5d6554..572d7a2 100644 --- a/lib/services/rocket.py +++ b/lib/services/rocket.py @@ -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(), )