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

Revise network creation #40

Closed
wants to merge 4 commits into from

Conversation

ekatef
Copy link
Member

@ekatef ekatef commented Apr 2, 2024

Closes #26 .

Changes proposed in this Pull Request

The goal is to make the workflow fetch the load and generation properly (currently there seems to be some issues there due to some temporal fix). Apart of that, it could probably make sense to revise a bit the current implementation.

Checklist

  • I consent to the release of this PR's code under the GPLv3 license and non-code contributions under CC0-1.0 and CC-BY-4.0.
  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Newly introduced dependencies are added to the main environment at PyPSA-Earth repository
  • Changes in configuration options are added in all of config.default.yaml and config.tutorial.yaml.
  • Add a test config or line additions to test/ (note tests are changing the config.tutorial.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.

).set_axis(["bus0", "x0", "y0", "bus1", "x1", "y1"], axis=1)

lines_df["length"] = lines_df.apply(
lambda x: geodistance.geodesic((x["x0"], x["y0"]), (x["x1"], x["y1"])).meters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need geopy for this?
An alternative is to make lines a geodataframe and use metric_crs to calculate the length

@ekatef
Copy link
Member Author

ekatef commented Dec 3, 2024

Closing as still covered in the code 😄
Thanks @Margherita-Capitani for getting this done!

@ekatef ekatef closed this Dec 3, 2024
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.

Possible bug in definition of central bus of the microgrid
2 participants