Skip to content

Commit

Permalink
Clean up returns
Browse files Browse the repository at this point in the history
  • Loading branch information
paulf81 committed Jul 24, 2024
1 parent fb98225 commit 007e2ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flasc/utilities/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def estimate_dt(time_array):
time_array (list): List or dataframe with time entries
Returns:
dt (datetime.timedelta): Timestep in dt.timedelta format
datetime.timedelta: Timestep in dt.timedelta format
"""
if len(time_array) < 2:
# Assume arbitrary value
Expand All @@ -37,7 +37,7 @@ def get_num_turbines(df):
df (pd.DataFrame): Dataframe with turbine data
Returns:
nt (int): Number of turbines in the dataframe
int: Number of turbines in the dataframe
"""
nt = 0
while ("pow_%03d" % nt) in df.columns:
Expand All @@ -64,7 +64,7 @@ def interp_with_max_gap(x, xp, fp, max_gap, kind, wrap_around_360=False):
fashion, i.e., the interpolation will wrap around 360 degrees.
Returns:
y (np.array): The interpolation results.
np.array: The interpolation results.
"""
if not ((kind == "linear") or (kind == "nearest")):
raise NotImplementedError("Unknown interpolation method specified.")
Expand Down Expand Up @@ -118,7 +118,7 @@ def _interpolate_with_max_gap(
extrapolate (bool): If True, extrapolate the data points on the boundaries
Returns:
y (np.array): The interpolation results.
np.array: The interpolation results.
"""
if not assume_sorted:
# Sort xp and fp to be monotonous
Expand Down

0 comments on commit 007e2ce

Please sign in to comment.