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

Fix float error build_powerplants #372

Merged
merged 3 commits into from
Jun 6, 2022
Merged

Fix float error build_powerplants #372

merged 3 commits into from
Jun 6, 2022

Conversation

davide-f
Copy link
Member

@davide-f davide-f commented Jun 6, 2022

Closes #370

Changes proposed in this Pull Request

When "NA" (Namibia) is read using pd.read_csv, that value is interpreted as NaN (float).
An helper function is created to avoid that and it has been used to fix the issue

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Newly introduced dependencies are added to envs/environment.yaml and envs/environment.docs.yaml.
  • Changes in configuration options are added in all of config.default.yaml, config.tutorial.yaml, and test/config.test1.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv and line references are adjusted in doc/configuration.rst and doc/tutorial.rst.
  • A note for the release notes doc/release_notes.rst is amended in the format of previous release notes, including reference to the requested PR.

@davide-f davide-f marked this pull request as ready for review June 6, 2022 09:42
@davide-f davide-f merged commit 74ed797 into pypsa-meets-earth:main Jun 6, 2022
pz-max pushed a commit that referenced this pull request Sep 24, 2022
Fix float error build_powerplants
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

Successfully merging this pull request may close these issues.

'float' object has no attribute bug caused by osm part in build_powerplants.py
1 participant