1- __author__ = " "
1+ __author__ = "Mateus Stano Junqueira "
22__copyright__ = "Copyright 20XX, RocketPy Team"
33__license__ = "MIT"
44
@@ -8,7 +8,7 @@ class _RocketPrints:
88
99 Attributes
1010 ----------
11- _RocketPrints.environment : rocket
11+ _RocketPrints.rocket : rocket
1212 Rocket object that will be used for the prints.
1313
1414 """
@@ -18,8 +18,8 @@ def __init__(self, rocket) -> None:
1818
1919 Parameters
2020 ----------
21- environment: Environment
22- Instance of the Environment class.
21+ rocket: rocketpy.rocket
22+ Instance of the rocket class.
2323
2424 Returns
2525 -------
@@ -158,22 +158,8 @@ def parachute_data(self):
158158 None
159159 """
160160 for chute in self .rocket .parachutes :
161- print ("\n " + chute .name .title () + " Parachute\n " )
162- print ("CdS Coefficient: " + str (chute .CdS ) + " m2" )
163- if chute .trigger .__name__ == "<lambda>" :
164- line = self .rocket .getsourcelines (chute .trigger )[0 ][0 ]
165- print (
166- "Ejection signal trigger: "
167- + line .split ("lambda " )[1 ].split ("," )[0 ].split ("\n " )[0 ]
168- )
169- else :
170- print ("Ejection signal trigger: " + chute .trigger .__name__ )
171- print ("Ejection system refresh rate: " + str (chute .samplingRate ) + " Hz." )
172- print (
173- "Time between ejection signal is triggered and the "
174- "parachute is fully opened: " + str (chute .lag ) + " s"
175- )
176- return None
161+ chute .allInfo ()
162+ return None
177163
178164 def all (self ):
179165 """Prints all print methods about the Environment.
0 commit comments