Merge branch 'master' into update-env
This commit is contained in:
commit
bab7c3128d
@ -17,7 +17,7 @@ repos:
|
|||||||
|
|
||||||
# Sort package imports alphabetically
|
# Sort package imports alphabetically
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.10.1
|
rev: 5.11.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
args: ["--profile", "black", "--filter-files"]
|
args: ["--profile", "black", "--filter-files"]
|
||||||
@ -39,7 +39,7 @@ repos:
|
|||||||
|
|
||||||
# Make docstrings PEP 257 compliant
|
# Make docstrings PEP 257 compliant
|
||||||
- repo: https://github.com/PyCQA/docformatter
|
- repo: https://github.com/PyCQA/docformatter
|
||||||
rev: v1.5.0
|
rev: v1.5.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: docformatter
|
- id: docformatter
|
||||||
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
|
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"]
|
||||||
@ -51,7 +51,7 @@ repos:
|
|||||||
|
|
||||||
# Formatting with "black" coding style
|
# Formatting with "black" coding style
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.10.0
|
rev: 22.12.0
|
||||||
hooks:
|
hooks:
|
||||||
# Format Python files
|
# Format Python files
|
||||||
- id: black
|
- id: black
|
||||||
@ -67,14 +67,14 @@ repos:
|
|||||||
|
|
||||||
# Do YAML formatting (before the linter checks it for misses)
|
# Do YAML formatting (before the linter checks it for misses)
|
||||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
rev: v2.4.0
|
rev: v2.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pretty-format-yaml
|
- id: pretty-format-yaml
|
||||||
args: [--autofix, --indent, "2", --preserve-quotes]
|
args: [--autofix, --indent, "2", --preserve-quotes]
|
||||||
|
|
||||||
# Format Snakemake rule / workflow files
|
# Format Snakemake rule / workflow files
|
||||||
- repo: https://github.com/snakemake/snakefmt
|
- repo: https://github.com/snakemake/snakefmt
|
||||||
rev: v0.7.0
|
rev: v0.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: snakefmt
|
- id: snakefmt
|
||||||
|
|
||||||
@ -87,6 +87,6 @@ repos:
|
|||||||
|
|
||||||
# Check for FSFE REUSE compliance (licensing)
|
# Check for FSFE REUSE compliance (licensing)
|
||||||
- repo: https://github.com/fsfe/reuse-tool
|
- repo: https://github.com/fsfe/reuse-tool
|
||||||
rev: v1.0.0
|
rev: v1.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reuse
|
- id: reuse
|
||||||
|
@ -12,6 +12,8 @@ Upcoming Release
|
|||||||
|
|
||||||
* Carriers of generators can now be excluded from aggregation in clustering network and simplify network.
|
* Carriers of generators can now be excluded from aggregation in clustering network and simplify network.
|
||||||
|
|
||||||
|
* Bugfix in the reserve constraint will increase demand related reserve requirements
|
||||||
|
|
||||||
PyPSA-Eur 0.6.1 (20th September 2022)
|
PyPSA-Eur 0.6.1 (20th September 2022)
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ def add_operational_reserve_margin_constraint(n, config):
|
|||||||
).sum(1)
|
).sum(1)
|
||||||
|
|
||||||
# Total demand at t
|
# Total demand at t
|
||||||
demand = n.loads_t.p.sum(1)
|
demand = n.loads_t.p_set.sum(1)
|
||||||
|
|
||||||
# VRES potential of non extendable generators
|
# VRES potential of non extendable generators
|
||||||
capacity_factor = n.generators_t.p_max_pu[vres_i.difference(ext_i)]
|
capacity_factor = n.generators_t.p_max_pu[vres_i.difference(ext_i)]
|
||||||
@ -389,11 +389,7 @@ def solve_network(n, config, opts="", **kwargs):
|
|||||||
|
|
||||||
if skip_iterations:
|
if skip_iterations:
|
||||||
network_lopf(
|
network_lopf(
|
||||||
n,
|
n, solver_name=solver_name, solver_options=solver_options, **kwargs
|
||||||
solver_name=solver_name,
|
|
||||||
solver_options=solver_options,
|
|
||||||
extra_functionality=extra_functionality,
|
|
||||||
**kwargs
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
ilopf(
|
ilopf(
|
||||||
@ -403,7 +399,6 @@ def solve_network(n, config, opts="", **kwargs):
|
|||||||
track_iterations=track_iterations,
|
track_iterations=track_iterations,
|
||||||
min_iterations=min_iterations,
|
min_iterations=min_iterations,
|
||||||
max_iterations=max_iterations,
|
max_iterations=max_iterations,
|
||||||
extra_functionality=extra_functionality,
|
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
return n
|
return n
|
||||||
@ -432,6 +427,7 @@ if __name__ == "__main__":
|
|||||||
n,
|
n,
|
||||||
snakemake.config,
|
snakemake.config,
|
||||||
opts,
|
opts,
|
||||||
|
extra_functionality=extra_functionality,
|
||||||
solver_dir=tmpdir,
|
solver_dir=tmpdir,
|
||||||
solver_logfile=snakemake.log.solver,
|
solver_logfile=snakemake.log.solver,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user