Skip to content

Commit d118c0e

Browse files
committed
maint: removed 'print' from methods names
1 parent 48b0fd3 commit d118c0e

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

rocketpy/Flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ def info(self):
22242224
------
22252225
None
22262226
"""
2227-
self.prints.allPrints()
2227+
self.prints.all()
22282228
return None
22292229

22302230
def calculateStallWindVelocity(self, stallAngle):

rocketpy/prints/flight_prints.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
self.flight = flight
3232
return None
3333

34-
def printInitialConditionsData(self):
34+
def initial_conditions(self):
3535
"""Prints all initial conditions data available about the Flight.
3636
3737
Parameters
@@ -79,7 +79,7 @@ def printInitialConditionsData(self):
7979

8080
return None
8181

82-
def printNumericalIntegrationSettings(self):
82+
def numerical_integration_settings(self):
8383
"""Prints out the Numerical Integration settings available about the
8484
flight.
8585
@@ -114,7 +114,7 @@ def printNumericalIntegrationSettings(self):
114114

115115
return None
116116

117-
def printSurfaceWindConditions(self):
117+
def surface_wind_conditions(self):
118118
"""Prints out the Surface Wind Conditions available about the flight.
119119
120120
Returns
@@ -137,7 +137,7 @@ def printSurfaceWindConditions(self):
137137

138138
return None
139139

140-
def printLaunchRailConditions(self):
140+
def launch_rail_conditions(self):
141141
"""Prints out the Launch Rail Conditions available about the flight.
142142
143143
Parameters
@@ -154,7 +154,7 @@ def printLaunchRailConditions(self):
154154
print("Launch Rail Heading: {:.2f}°".format(self.flight.heading))
155155
return None
156156

157-
def printOutOfRailConditions(self):
157+
def out_of_rail_conditions(self):
158158
"""Prints out the Out of Rail Conditions available about the flight.
159159
160160
Returns
@@ -191,7 +191,7 @@ def printOutOfRailConditions(self):
191191

192192
return None
193193

194-
def printBurnOutConditions(self):
194+
def burn_out_conditions(self):
195195
"""Prints out the Burn Out Conditions available about the flight.
196196
197197
Returns
@@ -239,7 +239,7 @@ def printBurnOutConditions(self):
239239

240240
return None
241241

242-
def printApogeeConditions(self):
242+
def apogee_conditions(self):
243243
"""Prints out the Apogee Conditions available about the flight.
244244
245245
Returns
@@ -263,7 +263,7 @@ def printApogeeConditions(self):
263263

264264
return None
265265

266-
def printEventsRegistered(self):
266+
def events_registered(self):
267267
"""Prints out the Events Registered available about the flight.
268268
269269
Returns
@@ -298,7 +298,7 @@ def printEventsRegistered(self):
298298
)
299299
return None
300300

301-
def printImpactConditions(self):
301+
def impact_conditions(self):
302302
"""Prints out the Impact Conditions available about the flight.
303303
304304
Returns
@@ -320,7 +320,7 @@ def printImpactConditions(self):
320320

321321
return None
322322

323-
def printMaximumValues(self):
323+
def maximum_values(self):
324324
"""Prints out the Maximum Values available about the flight.
325325
326326
Returns
@@ -381,7 +381,7 @@ def printMaximumValues(self):
381381
)
382382
return None
383383

384-
def allPrints(self):
384+
def all(self):
385385
"""Prints out all data available about the Flight.
386386
387387
Parameters
@@ -394,33 +394,33 @@ def allPrints(self):
394394
"""
395395

396396
# Print initial conditions
397-
self.printInitialConditionsData()
397+
self.initial_conditions()
398398

399399
# Print surface wind conditions
400-
self.printSurfaceWindConditions()
400+
self.surface_wind_conditions()
401401

402402
# Print launch rail orientation
403-
self.printLaunchRailConditions()
403+
self.launch_rail_conditions()
404404

405405
# Print out of rail conditions
406-
self.printOutOfRailConditions()
406+
self.out_of_rail_conditions()
407407

408408
# Print burnOut conditions
409-
self.printBurnOutConditions()
409+
self.burn_out_conditions()
410410

411411
# Print apogee conditions
412-
self.printApogeeConditions()
412+
self.apogee_conditions()
413413

414414
# Print events registered
415-
self.printEventsRegistered()
415+
self.events_registered()
416416

417417
# Print impact conditions
418-
self.printImpactConditions()
418+
self.impact_conditions()
419419

420420
# Print maximum values
421-
self.printMaximumValues()
421+
self.maximum_values()
422422

423423
# Print Numerical Integration Information
424-
self.printNumericalIntegrationSettings()
424+
self.numerical_integration_settings()
425425

426426
return None

0 commit comments

Comments
 (0)