Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pickle, New Land-use Constraint, Resampling #465

Merged
merged 12 commits into from
Nov 1, 2024

Conversation

ktehranchi
Copy link
Collaborator

@ktehranchi ktehranchi commented Oct 30, 2024

Changes proposed in this Pull Request

  • Implements dill pickle for transfer between add_elec and simplify_network to greatly speedup IO for larger networks. Taken from Implementation for including enhanced geothermal systems #385
  • Land-use:
    Implements new Land-use constraint to enable 'm' style zonal transmission clustering. The native pypsa implementation of land-use constraints assumes you have one carrier per bus- as one would if they follow the typical clustering algorithms. Their implementation will over-estimate land-availability in the cases you have multiple of a carrier for a given bus.
    To solve this I introduce a new field to the generators table land_region which is used in the land_use constraint implementation. Now land-use is applied to the max of a carrier-land_region pair across all time horizons.
  • Fixes issue with hourly resampling with leap-days by removing leap-days when resampling

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in all of config.default.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv.

@ktehranchi ktehranchi marked this pull request as ready for review October 30, 2024 20:32
@ktehranchi ktehranchi changed the title Pickle, New Land-use Constraint Pickle, New Land-use Constraint, Resampling Oct 30, 2024
@ktehranchi ktehranchi merged commit 98ee897 into PyPSA:develop Nov 1, 2024
1 check failed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant