Skip to content

Commit

Permalink
STY: applies black.
Browse files Browse the repository at this point in the history
- I did this changes by running `make format` at the root directory
  • Loading branch information
Gui-FernandesBR committed Sep 8, 2024
1 parent 52b26be commit 7bdc4f1
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions docs/examples/halcyon_flight_sim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -264,7 +265,7 @@
" dictionary=\"ECMWF\",\n",
")\n",
"env.max_expected_height = 4000\n",
"env.info()\n"
"env.info()"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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)"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -440,7 +437,7 @@
" sampling_rate=100,\n",
" lag=5,\n",
" noise=(0, 8.3, 0.5),\n",
")\n"
")"
]
},
{
Expand All @@ -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",
")"
]
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 7bdc4f1

Please sign in to comment.