Skip to content

Commit 13ff9d4

Browse files
DOCS: reshape docs (closes #659) (#781)
* DOC: add reference for reshaping thrust curve in documentation and improve method docstring * MNT: fix broken ref * DEV: update changelog
1 parent 07b9d57 commit 13ff9d4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Attention: The newest changes should be on top -->
3636

3737
### Changed
3838

39+
- DOCS: reshape docs (closes #659) [#781](https://github.com/RocketPy-Team/RocketPy/pull/781)
3940
- MNT: EmptyMotor class inherits from Motor(ABC) [#779](https://github.com/RocketPy-Team/RocketPy/pull/779)
4041

4142
### Fixed

docs/user/motors/thrust.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class also supports them. Let's see how to use it.
164164
)
165165
solid_lambda.info()
166166

167+
.. _reshaping_thrust_curve:
168+
167169
Reshaping and interpolating the thrust curve
168170
--------------------------------------------
169171

rocketpy/motors/motor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,8 @@ def propellant_I_23(self):
878878
def reshape_thrust_curve(thrust, new_burn_time, total_impulse):
879879
"""Transforms the thrust curve supplied by changing its total
880880
burn time and/or its total impulse, without altering the
881-
general shape of the curve.
881+
general shape of the curve. This method does not mutate the original
882+
object, it only returns a new thrust curve.
882883
883884
Parameters
884885
----------
@@ -893,6 +894,10 @@ def reshape_thrust_curve(thrust, new_burn_time, total_impulse):
893894
-------
894895
Function
895896
Reshaped thrust curve.
897+
898+
Tip
899+
---
900+
See the User Guide page for examples on how to use this method.
896901
"""
897902
# Retrieve current thrust curve data points
898903
time_array, thrust_array = thrust.x_array, thrust.y_array

0 commit comments

Comments
 (0)