Skip to content

Commit

Permalink
Update rocketpy/environment/environment.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gui-FernandesBR <[email protected]>
  • Loading branch information
MateusStano and Gui-FernandesBR authored Jan 25, 2024
1 parent 09d0b4b commit 0de4756
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rocketpy/environment/environment.py
Original file line number Diff line number Diff line change
@@ -3025,9 +3025,7 @@ def pressure_function(h):
outputs="Pressure (Pa)",
)

# Save international standard atmosphere height by pressure profile
# and discretize it. This is done to speed up the calculations in the
# trajectory simulation.
# Discretize Function to speed up the trajectory simulation.
self.barometric_height_ISA = self.pressure_ISA.inverse_function().set_discrete(
pressure[-1], pressure[0], 100, extrapolation="constant"
)

0 comments on commit 0de4756

Please sign in to comment.