10000 ENH: Add Eccentricity to Stochastic Simulations by kevin-alcaniz · Pull Request #792 · RocketPy-Team/RocketPy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Add Eccentricity to Stochastic Simulations #792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrections requested by the pylint test
  • Loading branch information
kevin-alcaniz committed Mar 15, 2025
commit 18f8323f39798ae90caada573660dcf63b113769
2 changes: 1 addition & 1 deletion rocketpy/stochastic/stochastic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def format_attribute(attr, value):
)
elif isinstance(value, tuple):
nominal_value, std_dev, dist_func = value
if dist_func == np.random.uniform:
if callable(dist_func) and dist_func.__name__ == "uniform":
mean = (std_dev + nominal_value) / 2
half_range = (std_dev - nominal_value) / 2
return (
Expand Down
0