Closed hazemakhalek closed 2 years ago
As mentioned, this error sounds very weird. I'd suggest you to verify the specific "countries" vector that is used in the workflow to check whether there may be weird values. Moreover, I'd suggest also to be sure to have resetted the powerplantmatching, both in terms of package and data, as in the other issue (https://github.com/pypsa-meets-africa/pypsa-africa/issues/358)
I think it has to do more with the operand in the query function more than the country. Which python version do you use?
Currently I have the environment down; it is reinstalling. Python was 3.10 I think. I think it may be a problem of:
The CI constantly works and runs also that code, so that lines should work
I've started a new fresh environment and deleted the data as described in the issue mentioned before; MA worked. In the night, I plan to run the Africa model to test the new branch normalize-hydro, which should further validate the issue. That may help crosschecking this issue as well.
What changes did you make with respect to the last time you executed the code?
@Hazem-IEG , just as a confirmation, have you solved this issue with the above-mentioned techniques? HAve you identified the root cause?
Closing this issue as it seems it is no more an issue
Checklist
main
branch or the latest release. Please indicate.pypsa-africa
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
The workflow crashes when trying to index certain rows from a dataframe using the
query()
Error Message
If applicable, paste any terminal output to help illustrating your problem. In some cases it may also be useful to share your list of installed packages:
conda list
.