Skip to content

Error in running turbine_cluster_modelchain_example.ipynb #135

@zhp66

Description

@zhp66

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions