File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments