Skip to content

Commit 78256b8

Browse files
committed
MNT: ruff
1 parent badd7e2 commit 78256b8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

rocketpy/environment/tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def _adjust_boundary_coordinate_index(index, coord_list, coord_value):
307307
return index
308308

309309

310-
def _validate_coordinate_index_in_range(index, coord_len, coord_start, coord_end, coord_name):
310+
def _validate_coordinate_index_in_range(
311+
index, coord_len, coord_start, coord_end, coord_name
312+
):
311313
"""Validate that coordinate index is within valid interpolation range.
312314
313315
Parameters
@@ -365,7 +367,9 @@ def find_longitude_index(longitude, lon_list):
365367
lon_index = _binary_search_coordinate_index(lon, lon_list, is_ascending)
366368
lon_index = _adjust_boundary_coordinate_index(lon_index, lon_list, lon)
367369

368-
_validate_coordinate_index_in_range(lon_index, lon_len, lon_start, lon_end, "Longitude")
370+
_validate_coordinate_index_in_range(
371+
lon_index, lon_len, lon_start, lon_end, "Longitude"
372+
)
369373

370374
return lon, lon_index
371375

0 commit comments

Comments
 (0)