Skip to content

Commit 7bdc4f1

Browse files
STY: applies black.
- I did this changes by running `make format` at the root directory
1 parent 52b26be commit 7bdc4f1

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

docs/examples/halcyon_flight_sim.ipynb

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
"metadata": {},
4545
"outputs": [],
4646
"source": [
47-
"from rocketpy import Function,Environment, Flight, Rocket\n",
47+
"from rocketpy import Function, Environment, Flight, Rocket\n",
4848
"from rocketpy.motors import CylindricalTank, Fluid, HybridMotor\n",
4949
"from rocketpy.motors.tank import MassFlowRateBasedTank\n",
50-
"import datetime \n",
50+
"import datetime\n",
5151
"import matplotlib.pyplot as plt\n",
52+
"\n",
5253
"plt.style.use(\"seaborn-v0_8-colorblind\")"
5354
]
5455
},
@@ -67,7 +68,7 @@
6768
}
6869
],
6970
"source": [
70-
"tomorrow = datetime.date(2023,10,13) + datetime.timedelta(days=1)\n",
71+
"tomorrow = datetime.date(2023, 10, 13) + datetime.timedelta(days=1)\n",
7172
"\n",
7273
"Env = Environment(\n",
7374
" latitude=39.388692,\n",
@@ -246,7 +247,7 @@
246247
"source": [
247248
"env = Environment(\n",
248249
" gravity=9.80665,\n",
249-
" date=(2023,10,13,14),\n",
250+
" date=(2023, 10, 13, 14),\n",
250251
" latitude=39.388692,\n",
251252
" longitude=-8.287814,\n",
252253
" elevation=120,\n",
@@ -264,7 +265,7 @@
264265
" dictionary=\"ECMWF\",\n",
265266
")\n",
266267
"env.max_expected_height = 4000\n",
267-
"env.info()\n"
268+
"env.info()"
268269
]
269270
},
270271
{
@@ -301,7 +302,7 @@
301302
"\n",
302303
"hybrid_motor = HybridMotor(\n",
303304
" thrust_source=\"../../data/astg/engine_Halcyon_4thHotfire.eng\",\n",
304-
" dry_mass=10670/ 1000,\n",
305+
" dry_mass=10670 / 1000,\n",
305306
" dry_inertia=(1.668, 1.668, 0.026),\n",
306307
" center_of_dry_mass_position=780 / 1000,\n",
307308
" burn_time=5,\n",
@@ -319,7 +320,7 @@
319320
" coordinate_system_orientation=\"nozzle_to_combustion_chamber\",\n",
320321
")\n",
321322
"\n",
322-
"hybrid_motor.add_tank(tank=oxidizer_tank, position=934.75/ 1000)\n"
323+
"hybrid_motor.add_tank(tank=oxidizer_tank, position=934.75 / 1000)"
323324
]
324325
},
325326
{
@@ -408,11 +409,7 @@
408409
"metadata": {},
409410
"outputs": [],
410411
"source": [
411-
"NoseCone = HALCYON.add_nose(\n",
412-
" length=0.46, \n",
413-
" kind=\"vonKarman\", \n",
414-
" position=3556 / 1000\n",
415-
")\n",
412+
"NoseCone = HALCYON.add_nose(length=0.46, kind=\"vonKarman\", position=3556 / 1000)\n",
416413
"\n",
417414
"FinSet = HALCYON.add_trapezoidal_fins(\n",
418415
" n=4,\n",
@@ -440,7 +437,7 @@
440437
" sampling_rate=100,\n",
441438
" lag=5,\n",
442439
" noise=(0, 8.3, 0.5),\n",
443-
")\n"
440+
")"
444441
]
445442
},
446443
{
@@ -457,11 +454,7 @@
457454
"outputs": [],
458455
"source": [
459456
"test_flight = Flight(\n",
460-
" rocket=HALCYON, \n",
461-
" environment=env, \n",
462-
" inclination=85, \n",
463-
" heading=90, \n",
464-
" rail_length=12\n",
457+
" rocket=HALCYON, environment=env, inclination=85, heading=90, rail_length=12\n",
465458
")"
466459
]
467460
},
@@ -528,8 +521,8 @@
528521
"\n",
529522
"columns_map = {\n",
530523
" \"ts\": \"time\",\n",
531-
" \"filtered_altitude_AGL\":\"altitude\" ,\n",
532-
" \"filtered_acceleration\":\"az\" ,\n",
524+
" \"filtered_altitude_AGL\": \"altitude\",\n",
525+
" \"filtered_acceleration\": \"az\",\n",
533526
"}\n",
534527
"\n",
535528
"cots_altimeter_flight = FlightDataImporter(\n",

0 commit comments

Comments
 (0)