Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsimley committed Nov 8, 2024
1 parent 1427fa6 commit 1ee7dbb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions flasc/data_processing/dataframe_manipulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def set_wd_by_upstream_turbines(
upstream, excluding the turbines listed in exclude_turbs. As an
intermediate step, the average wind direction over all turbines
is used to determine the set of upstream turbines from which the
final wind direction signal is derived.
final wind direction signal is derived.
Args:
df (pd.DataFrame | FlascDataFrame): Dataframe with measurements. This dataframe
Expand All @@ -401,8 +401,7 @@ def set_wd_by_upstream_turbines(
pd.Dataframe | FlascDataFrame: Dataframe which equals the inserted dataframe
plus the additional column called 'wd'.
"""

# First, set wind direction using all turbines
# First, set wind direction using all turbines
df = set_wd_by_all_turbines(df)

# Use the farm-average wind direction to determine a new wind direction signal
Expand All @@ -419,7 +418,7 @@ def set_wd_by_upstream_turbines(
df = df.drop(columns=["wd"])

df = df.rename(columns={"wd_upstream": "wd"})

return df


Expand Down Expand Up @@ -508,10 +507,9 @@ def set_wd_by_upstream_turbines_in_radius(
pd.Dataframe | FlascDataFrame: Dataframe which equals the inserted dataframe
plus the additional column called 'wd'.
"""

# First, set wind direction using all turbines
# First, set wind direction using all turbines
df = set_wd_by_all_turbines(df)

# Use the farm-average wind direction to determine a new wind direction signal
# using only upstream turbines within radius
df = _set_col_by_upstream_turbines_in_radius(
Expand Down

0 comments on commit 1ee7dbb

Please sign in to comment.