Skip to content

distributed slack implementation#107

Merged
FabianHofmann merged 17 commits intomasterfrom
distributed-slack
Nov 25, 2019
Merged

distributed slack implementation#107
FabianHofmann merged 17 commits intomasterfrom
distributed-slack

Conversation

@fneum
Copy link
Copy Markdown
Member

@fneum fneum commented Nov 22, 2019

fixes #10

Adds an option distribute_slack to

def network_pf(network, snapshots=None, skip_pre=False, 
x_tol=1e-6, use_seed=False, distribute_slack=False):`

to distribute the total slack power to all generators proportional to their dispatch at the respective snapshot.

Docstrings already extended.

@anileinchen, could you please also test this?

Remaining TODOs:

  • add a test
  • update documentation

@FabianHofmann
Copy link
Copy Markdown
Contributor

looks good (but not tested), I would replace all .real's and .imag's by the functions. There is still deprecation warnings, good opportunity to tackle this

@FabianHofmann
Copy link
Copy Markdown
Contributor

you mind if I push a commit which removes unnecessary imports? (btw it seems that the function normed is not defined)

@fneum
Copy link
Copy Markdown
Member Author

fneum commented Nov 22, 2019

@FabianHofmann

  • go ahead an remove unnecessary imports; I forgot to add normed; is fixed.
  • Where exactly do you still get deprecation warnings for .real? I only got them for pd.Series / pd.DataFrame, but I don't see any remaining. Am I overlooking st?

@fneum
Copy link
Copy Markdown
Member Author

fneum commented Nov 22, 2019

Found the remaining deprecation warnings for .real/.imag.

@FabianHofmann
Copy link
Copy Markdown
Contributor

Found the remaining deprecation warnings for .real/.imag.

yes, looks good. They appear when running pytest

@FabianHofmann
Copy link
Copy Markdown
Contributor

mmh, okay solving the collections deprecation warning isn't compatible with python2.7, another reason to drop the support. I'll revert it for the moment

@fneum fneum marked this pull request as ready for review November 22, 2019 13:30
fneum pushed a commit that referenced this pull request Mar 20, 2022
* rewrite mocksnakemake for parsing real Snakefile

* continue add function to scripts

* going through all scripts, setting new mocksnakemake

* fix plotting scripts

* fix build_country_flh

* fix build_country_flh II

* adjust config files

* fix make_summary for tutorial network

* create dir also for output

* incorporate suggestions

* consistent import of mocksnakemake

* consistent import of mocksnakemake II

* Update scripts/_helpers.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/_helpers.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/_helpers.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/_helpers.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/plot_network.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/plot_network.py

Co-Authored-By: euronion <[email protected]>

* Update scripts/retrieve_databundle.py

Co-Authored-By: euronion <[email protected]>

* use pathlib for mocksnakemake

* rename mocksnakemake into mock_snakemake

* revert change in data

* Update scripts/_helpers.py

Co-Authored-By: euronion <[email protected]>

* remove setting logfile in mock_snakemake, use Path in configure_logging

* fix fallback path and base_dir
fix return type of make_io_accessable

* reformulate mock_snakemake

* incorporate suggestion, fix typos

* mock_snakemake: apply absolute paths again, add assertion error
*.py: make hard coded io path accessable for mock_snakemake

* retrieve_natura_raster: use snakemake.output for fn_out

* include suggestion

* Apply suggestions from code review

Co-Authored-By: Jonas Hörsch <[email protected]>

* linting, add return ad end of file

* Update scripts/plot_p_nom_max.py

Co-Authored-By: Jonas Hörsch <[email protected]>

* Update scripts/plot_p_nom_max.py

fixes #112

Co-Authored-By: Jonas Hörsch <[email protected]>

* plot_p_nom_max: small correction

* config.tutorial.yaml fix snapshots end

* use techs instead of technology

* revert try out from previous commit, complete replacing

* change clusters -> clusts in plot_p_nom_max due to wildcard constraints of clusters

* change clusters -> clusts in plot_p_nom_max due to wildcard constraints of clusters II
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.

Multiple Slack Generators / Buses

3 participants