Skip to content

Commit ad928ec

Browse files
committed
skip pylint errors
1 parent 930c2bc commit ad928ec

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

mhkit/river/io/d3d.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from numpy.typing import ArrayLike, NDArray
1616
from mhkit.utils import unorm
1717

18-
18+
# pylint: disable=too-many-lines
19+
# pylint: disable=possibly-used-before-assignment
1920
def get_all_time(data: (netCDF4.Dataset, xr.Dataset)) -> NDArray:
2021
"""
2122
Returns all of the time stamps from a D3D simulation passed to the function
@@ -71,7 +72,7 @@ def index_to_seconds(data: netCDF4.Dataset, time_index: int) -> Union[int, float
7172
"""
7273
return _convert_time(data, time_index=time_index)
7374

74-
75+
# pylint: disable=possibly-used-before-assignment
7576
def seconds_to_index(data: netCDF4.Dataset, seconds_run: Union[int, float]) -> int:
7677
"""
7778
The function will return the nearest 'time_index' in the data if passed an
@@ -94,7 +95,7 @@ def seconds_to_index(data: netCDF4.Dataset, seconds_run: Union[int, float]) -> i
9495
"""
9596
return _convert_time(data, seconds_run=seconds_run)
9697

97-
98+
# pylint: disable=possibly-used-before-assignment
9899
def _convert_time(
99100
data: netCDF4.Dataset or xr.Dataset,
100101
time_index: Optional[Union[int, float]] = None,
@@ -164,6 +165,7 @@ def _convert_time(
164165
# pylint: disable=too-many-locals
165166
# pylint: disable=too-many-branches
166167
# pylint: disable=too-many-statements
168+
# pylint: disable=possibly-used-before-assignment
167169
def get_layer_data(
168170
data: Union[netCDF4.Dataset, xr.Dataset],
169171
variable: str,
@@ -683,7 +685,7 @@ def variable_interpolation(
683685

684686
return transformed_data
685687

686-
688+
# pylint: disable=possibly-used-before-assignment
687689
def get_all_data_points(
688690
data: (netCDF4.Dataset, xr.Dataset),
689691
variable: str,

0 commit comments

Comments
 (0)