Skip to content

Commit 7c49763

Browse files
committed
Fixing style errors.
1 parent 11a3210 commit 7c49763

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

windpowerlib/power_output.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def power_curve_density_correction(
236236
+ "height is needed."
237237
)
238238

239-
# Convert pandas.Series to a numpy array to speed up the interpolation below.
239+
# Convert pandas.Series to a numpy array to speed up the interpolation below.
240240
if isinstance(wind_speed, pd.Series):
241241
# save the indexes for later conversion to pd.Series
242242
wind_speed_indexes = wind_speed.index
@@ -267,7 +267,9 @@ def power_curve_density_correction(
267267
]
268268

269269
# Power_output as pd.Series if wind_speed is pd.Series (else: np.array)
270-
if panda_series: # use the flag to check if the data should be converted back to pandas.Series
270+
if (
271+
panda_series
272+
): # use the flag to check if the data should be converted back to pandas.Series
271273
power_output = pd.Series(
272274
data=power_output,
273275
index=wind_speed_indexes, # Use previously saved wind speed indexes

0 commit comments

Comments
 (0)