Skip to content

Commit

Permalink
Merge pull request #424 from RocketPy-Team/docs/utilities-functions-l…
Browse files Browse the repository at this point in the history
…abels

MNT: clearly specify the rocket mass in utilities
  • Loading branch information
MateusStano authored Oct 6, 2023
2 parents e477a8e + 69d8b35 commit 1fa8de1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rocketpy/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def apogee(mass):
source = np.array(list(zip(x, y)), dtype=np.float64)

retfunc = Function(
source, inputs="Rocket Dry Mass (kg)", outputs="Estimated Apogee AGL (m)"
source, inputs="Rocket Mass without motor (kg)", outputs="Apogee AGL (m)"
)
if plot:
retfunc.plot(min_mass, max_mass, points)
Expand Down Expand Up @@ -636,7 +636,9 @@ def liftoff_speed(mass):
source = np.array(list(zip(x, y)), dtype=np.float64)

retfunc = Function(
source, inputs="Rocket Dry Mass (kg)", outputs="Liftoff Speed (m/s)"
source,
inputs="Rocket Mass without motor (kg)",
outputs="Out of Rail Speed (m/s)",
)
if plot:
retfunc.plot(min_mass, max_mass, points)
Expand Down

0 comments on commit 1fa8de1

Please sign in to comment.