Skip to content

Commit

Permalink
Merge branch 'develop' into doc/landing-page
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed May 3, 2024
2 parents 77ded39 + 880afb1 commit e20d685
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- BUG: Optional Dependencies Naming in pyproject.toml. [#592](https://github.com/RocketPy-Team/RocketPy/pull/592)
- BUG: Swap rocket.total_mass.differentiate for motor.total_mass_flow rate [#585](https://github.com/RocketPy-Team/RocketPy/pull/585)
- BUG: export_eng 'Motor' method would not work for liquid motors. [#559](https://github.com/RocketPy-Team/RocketPy/pull/559)

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ tests = [
"isort"
]

env_analysis = [
env-analysis = [
"windrose>=1.6.8",
"timezonefinder",
"jsonpickle",
"ipython",
"ipywidgets>=7.6.3"
]

all = ["rocketpy[env-analysis]"]

[tool.black]
line-length = 88
include = '\.py$|\.ipynb$'
Expand Down
18 changes: 18 additions & 0 deletions rocketpy/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3077,6 +3077,24 @@ def calculate_density_profile(self):
Returns
-------
None
Examples
--------
Creating an Environment object and calculating the density
at Sea Level:
>>> env = Environment()
>>> env.calculate_density_profile()
>>> env.density(0)
1.225000018124288
Creating an Environment object and calculating the density
at 1000m above Sea Level:
>>> env = Environment()
>>> env.calculate_density_profile()
>>> env.density(1000)
1.1116193933422585
"""
# Retrieve pressure P, gas constant R and temperature T
P = self.pressure
Expand Down

0 comments on commit e20d685

Please sign in to comment.