Skip to content

Commit 5e99b1f

Browse files
authored
Merge branch 'develop' into bug/deactivation-opendap-nomads
2 parents 1c59ae3 + 9cd2d34 commit 5e99b1f

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)