Title: Error in running turbine_cluster_modelchain_example.ipynb · Issue #135 · wind-python/windpowerlib · GitHub
Open Graph Title: Error in running turbine_cluster_modelchain_example.ipynb · Issue #135 · wind-python/windpowerlib
X Title: Error in running turbine_cluster_modelchain_example.ipynb · Issue #135 · wind-python/windpowerlib
Description: 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, **kwarg...
Open Graph Description: 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, standa...
X Description: 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, standa...
Opengraph URL: https://github.com/wind-python/windpowerlib/issues/135
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error in running turbine_cluster_modelchain_example.ipynb","articleBody":"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)\r\n 141 maximum_value = power_curve_wind_speeds.iloc[-1] + wind_speed_range\r\n 142 while power_curve_wind_speeds.values[-1] \u003c maximum_value:\r\n--\u003e 143 power_curve_wind_speeds = power_curve_wind_speeds.append(\r\n 144 pd.Series(\r\n 145 power_curve_wind_speeds.iloc[-1]\r\n 146 + (\r\n 147 power_curve_wind_speeds.iloc[5]\r\n 148 - power_curve_wind_speeds.iloc[4]\r\n 149 ),\r\n 150 index=[power_curve_wind_speeds.index[-1] + 1],\r\n 151 )\r\n 152 )\r\n 153 power_curve_values = power_curve_values.append(\r\n 154 pd.Series(0.0, index=[power_curve_values.index[-1] + 1])\r\n 155 )\r\n 156 for power_curve_wind_speed in power_curve_wind_speeds:\r\n 157 # Create array of wind speeds for the sum\r\n\r\nFile /srv/conda/envs/notebook/lib/python3.10/site-packages/pandas/core/generic.py:5989, in NDFrame.__getattr__(self, name)\r\n 5982 if (\r\n 5983 name not in self._internal_names_set\r\n 5984 and name not in self._metadata\r\n 5985 and name not in self._accessors\r\n 5986 and self._info_axis._can_hold_identifiers_and_holds_name(name)\r\n 5987 ):\r\n 5988 return self[name]\r\n-\u003e 5989 return object.__getattribute__(self, name)\r\n\r\nAttributeError: 'Series' object has no attribute 'append'","author":{"url":"https://github.com/zhp66","@type":"Person","name":"zhp66"},"datePublished":"2024-01-01T04:01:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/135/windpowerlib/issues/135"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:afd725ec-dea4-5a6e-5f40-204829a8e599 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AC4:29F76B:2AFA2E:3AB807:698D853E |
| html-safe-nonce | 4fc84a4e1c39a8c26336ec8dce6a123f8d1abf70e09752d5f9d7a2d8450e2176 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUM0OjI5Rjc2QjoyQUZBMkU6M0FCODA3OjY5OEQ4NTNFIiwidmlzaXRvcl9pZCI6IjgxNTk4MjAyOTk0MTMzMjUxMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47b04def2042b27354d9814f804fba8b1131d979c3c66c195f87d9d30a6b75dc |
| hovercard-subject-tag | issue:2061296142 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wind-python/windpowerlib/135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2c75696ab6c62a955b963f84d018796f9eaf8c29434fa1f85e2298cc20b35f0/wind-python/windpowerlib/issues/135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2c75696ab6c62a955b963f84d018796f9eaf8c29434fa1f85e2298cc20b35f0/wind-python/windpowerlib/issues/135 |
| og:image:alt | 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, standa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhp66 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/wind-python/windpowerlib git https://github.com/wind-python/windpowerlib.git |
| octolytics-dimension-user_id | 21263042 |
| octolytics-dimension-user_login | wind-python |
| octolytics-dimension-repository_id | 66651306 |
| octolytics-dimension-repository_nwo | wind-python/windpowerlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66651306 |
| octolytics-dimension-repository_network_root_nwo | wind-python/windpowerlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4c8f4bd0b67d7f1472d0ab3f49827eaae062a36b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width