diff --git a/docs/examples/halcyon_flight_sim.ipynb b/docs/examples/halcyon_flight_sim.ipynb index 474b00fe8..0ebdf0b0f 100644 --- a/docs/examples/halcyon_flight_sim.ipynb +++ b/docs/examples/halcyon_flight_sim.ipynb @@ -44,11 +44,12 @@ "metadata": {}, "outputs": [], "source": [ - "from rocketpy import Function,Environment, Flight, Rocket\n", + "from rocketpy import Function, Environment, Flight, Rocket\n", "from rocketpy.motors import CylindricalTank, Fluid, HybridMotor\n", "from rocketpy.motors.tank import MassFlowRateBasedTank\n", - "import datetime \n", + "import datetime\n", "import matplotlib.pyplot as plt\n", + "\n", "plt.style.use(\"seaborn-v0_8-colorblind\")" ] }, @@ -67,7 +68,7 @@ } ], "source": [ - "tomorrow = datetime.date(2023,10,13) + datetime.timedelta(days=1)\n", + "tomorrow = datetime.date(2023, 10, 13) + datetime.timedelta(days=1)\n", "\n", "Env = Environment(\n", " latitude=39.388692,\n", @@ -246,7 +247,7 @@ "source": [ "env = Environment(\n", " gravity=9.80665,\n", - " date=(2023,10,13,14),\n", + " date=(2023, 10, 13, 14),\n", " latitude=39.388692,\n", " longitude=-8.287814,\n", " elevation=120,\n", @@ -264,7 +265,7 @@ " dictionary=\"ECMWF\",\n", ")\n", "env.max_expected_height = 4000\n", - "env.info()\n" + "env.info()" ] }, { @@ -301,7 +302,7 @@ "\n", "hybrid_motor = HybridMotor(\n", " thrust_source=\"../../data/astg/engine_Halcyon_4thHotfire.eng\",\n", - " dry_mass=10670/ 1000,\n", + " dry_mass=10670 / 1000,\n", " dry_inertia=(1.668, 1.668, 0.026),\n", " center_of_dry_mass_position=780 / 1000,\n", " burn_time=5,\n", @@ -319,7 +320,7 @@ " coordinate_system_orientation=\"nozzle_to_combustion_chamber\",\n", ")\n", "\n", - "hybrid_motor.add_tank(tank=oxidizer_tank, position=934.75/ 1000)\n" + "hybrid_motor.add_tank(tank=oxidizer_tank, position=934.75 / 1000)" ] }, { @@ -408,11 +409,7 @@ "metadata": {}, "outputs": [], "source": [ - "NoseCone = HALCYON.add_nose(\n", - " length=0.46, \n", - " kind=\"vonKarman\", \n", - " position=3556 / 1000\n", - ")\n", + "NoseCone = HALCYON.add_nose(length=0.46, kind=\"vonKarman\", position=3556 / 1000)\n", "\n", "FinSet = HALCYON.add_trapezoidal_fins(\n", " n=4,\n", @@ -440,7 +437,7 @@ " sampling_rate=100,\n", " lag=5,\n", " noise=(0, 8.3, 0.5),\n", - ")\n" + ")" ] }, { @@ -457,11 +454,7 @@ "outputs": [], "source": [ "test_flight = Flight(\n", - " rocket=HALCYON, \n", - " environment=env, \n", - " inclination=85, \n", - " heading=90, \n", - " rail_length=12\n", + " rocket=HALCYON, environment=env, inclination=85, heading=90, rail_length=12\n", ")" ] }, @@ -528,8 +521,8 @@ "\n", "columns_map = {\n", " \"ts\": \"time\",\n", - " \"filtered_altitude_AGL\":\"altitude\" ,\n", - " \"filtered_acceleration\":\"az\" ,\n", + " \"filtered_altitude_AGL\": \"altitude\",\n", + " \"filtered_acceleration\": \"az\",\n", "}\n", "\n", "cots_altimeter_flight = FlightDataImporter(\n",