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

Implement everywhere_powerplants #850

Merged
merged 11 commits into from Jan 8, 2024
Merged

Implement everywhere_powerplants #850

merged 11 commits into from Jan 8, 2024

Conversation

euronion
Copy link
Contributor

@euronion euronion commented Jan 8, 2024

Changes proposed in this Pull Request

The combination of conventional_carriers and extendable_carriers currently only allows for expanding conventional capacities in locations, where historically powerplants of that carrier where located.
This PR adds a new configuration option to place conventional powerplants at every network node, irrespective whether powerplants have historically existed there.

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • [n/a] 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.
  • A release note doc/release_notes.rst is added.

@euronion
Copy link
Contributor Author

euronion commented Jan 8, 2024

Not sure why the environment.fixed.yaml got reformatted automatically by pre-commit

@euronion euronion requested a review from fneum January 8, 2024 08:43
Copy link
Member

@fneum fneum left a comment

Choose a reason for hiding this comment

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

LGTM, nicely documented :)

@euronion
Copy link
Contributor Author

euronion commented Jan 8, 2024

These errors are what I get for changing the variable names last minute ._.

@euronion
Copy link
Contributor Author

euronion commented Jan 8, 2024

Btw.: Reformatting of environment.fixed.yaml and missing REUSE compliance of the file related bf5c323 because it was pushed directly. Fixing it here.

@fneum
Copy link
Member

fneum commented Jan 8, 2024

Hmm, gibt noch einige Probleme:

 Traceback (most recent call last):
  File "/home/runner/work/pypsa-eur/pypsa-eur/.snakemake/scripts/tmp9uspklvi.add_existing_baseyear.py", line 678, in <module>
    add_power_capacities_installed_before_baseyear(
  File "/home/runner/work/pypsa-eur/pypsa-eur/.snakemake/scripts/tmp9uspklvi.add_existing_baseyear.py", line 199, in add_power_capacities_installed_before_baseyear
    df_agg["grouping_year"] = np.take(
                              ^^^^^^^^
  File "/home/runner/micromamba/envs/pypsa-eur/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 192, in take
    return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pypsa-eur/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pypsa-eur/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 45, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: index 11 is out of bounds for axis 0 with size 11

@fneum fneum merged commit 799ed06 into master Jan 8, 2024
5 checks passed
@fneum fneum deleted the feat/carriers-everywhere branch January 8, 2024 15:45
@euronion
Copy link
Contributor Author

euronion commented Jan 8, 2024

Thanks! :)

euronion pushed a commit to aodenweller/pypsa-eur that referenced this pull request Jan 8, 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.

None yet

2 participants