-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add info if datasets are not freshly loaded #104
Comments
Hey @jensch-dlr thanks for reporting. Could you print out the full stack trace? And what pandas version you use? |
Hello @FabianHofmann , `--------------------------------------------------------------------------- File c:\work\data\powerplantmatching\powerplantmatching\collection.py:230, in powerplants(config, config_update, update, from_url, extend_by_vres, extendby_kwargs, extend_by_kwargs, fill_geopositions, filter_missing_geopositions, **collection_kwargs) File c:\work\data\powerplantmatching\powerplantmatching\collection.py:98, in collect(datasets, update, reduced, config, **dukeargs) File c:\work\data\powerplantmatching\powerplantmatching\utils.py:378, in parmap(f, arg_list, config) File c:\work\data\powerplantmatching\powerplantmatching\collection.py:73, in collect..df_by_name(name) File c:\work\data\powerplantmatching\powerplantmatching\data.py:751, in ENTSOE(raw, update, config, entsoe_token, **fill_geoposition_kwargs) File C:\mambaforge-data\envs\powerplantmatching\Lib\site-packages\pandas\core\frame.py:4889, in DataFrame.assign(self, **kwargs) File C:\mambaforge-data\envs\powerplantmatching\Lib\site-packages\pandas\core\common.py:374, in apply_if_callable(maybe_callable, obj, **kwargs) File c:\work\data\powerplantmatching\powerplantmatching\data.py:752, in ENTSOE..(df) File C:\mambaforge-data\envs\powerplantmatching\Lib\site-packages\pandas\core\generic.py:5902, in NDFrame.getattr(self, name) AttributeError: 'DataFrame' object has no attribute 'Name'` The Pandas version I used is 1.5.3. By now, I think I know what causes the error. None of the PPM datasets is downloaded to my drive (at least I cannot find any). So the true mistake seems to lie there. So, my new question: Shouldn't that download happen when I use the powerplantmatching package? Like when I use Thank you! |
Okay, I found the problem. I had a version of That was the reason for the error message. So, I am guessing that currently PPM is only checking if a file with the same name already exists in the |
You're probably right. But this would actually require to go deep into the code. Perhaps a reset option would be better. Just in case one wants to make a fresh install. That would have solved the problem for you right? |
It would have, yes. Maybe a warning with a hint on that possible problem would have speeded up the process. But that might again be too hard to integrate? |
Hello everyone,
I cannot get the pm.powerplants(update=True) to run. I guess something is wrong with my config, but I cannot seem to find out what.
AttributeError: 'DataFrame' object has no attribute 'Name' when calling pm.powerplants(update=True)
Has anyone encountered that mistake before or knows how to circumvent it by chance?
The text was updated successfully, but these errors were encountered: