Skip to content

Commit 9cd2d34

Browse files
committed
MNT: rename constant for wraparound threshold in _break_direction_wraparound method
1 parent d0ce62a commit 9cd2d34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rocketpy/plots/environment_plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def _break_direction_wraparound(self, directions, altitudes):
5151
altitudes : numpy.ndarray
5252
Altitude array with NaN inserted at wraparound points.
5353
"""
54-
WRAP_THRESHOLD = 180 # degrees; half the full circle
55-
wrap_indices = np.where(np.abs(np.diff(directions)) > WRAP_THRESHOLD)[0] + 1
54+
wrap_threshold = 180 # degrees; half the full circle
55+
wrap_indices = np.where(np.abs(np.diff(directions)) > wrap_threshold)[0] + 1
5656
directions = np.insert(directions, wrap_indices, np.nan)
5757
altitudes = np.insert(altitudes, wrap_indices, np.nan)
5858
return directions, altitudes

0 commit comments

Comments
 (0)