Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running turbine_cluster_modelchain_example.ipynb #135

Open
zhp66 opened this issue Jan 1, 2024 · 0 comments
Open

Error in running turbine_cluster_modelchain_example.ipynb #135

zhp66 opened this issue Jan 1, 2024 · 0 comments

Comments

@zhp66
Copy link

zhp66 commented Jan 1, 2024

File /srv/conda/envs/notebook/lib/python3.10/site-packages/windpowerlib/power_curves.py:143, in smooth_power_curve(power_curve_wind_speeds, power_curve_values, block_width, wind_speed_range, standard_deviation_method, mean_gauss, **kwargs)
141 maximum_value = power_curve_wind_speeds.iloc[-1] + wind_speed_range
142 while power_curve_wind_speeds.values[-1] < maximum_value:
--> 143 power_curve_wind_speeds = power_curve_wind_speeds.append(
144 pd.Series(
145 power_curve_wind_speeds.iloc[-1]
146 + (
147 power_curve_wind_speeds.iloc[5]
148 - power_curve_wind_speeds.iloc[4]
149 ),
150 index=[power_curve_wind_speeds.index[-1] + 1],
151 )
152 )
153 power_curve_values = power_curve_values.append(
154 pd.Series(0.0, index=[power_curve_values.index[-1] + 1])
155 )
156 for power_curve_wind_speed in power_curve_wind_speeds:
157 # Create array of wind speeds for the sum

File /srv/conda/envs/notebook/lib/python3.10/site-packages/pandas/core/generic.py:5989, in NDFrame.getattr(self, name)
5982 if (
5983 name not in self._internal_names_set
5984 and name not in self._metadata
5985 and name not in self._accessors
5986 and self._info_axis._can_hold_identifiers_and_holds_name(name)
5987 ):
5988 return self[name]
-> 5989 return object.getattribute(self, name)

AttributeError: 'Series' object has no attribute 'append'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant