New Variable statistics function for Final Energy [by Carrier]|Coal#55
Draft
New Variable statistics function for Final Energy [by Carrier]|Coal#55
Conversation
7 tasks
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a new statistics function to compute IAMC variable 'Final Energy [by Carrier]|Coal' using PyPSA network withdrawals and wires it into the default IAMC-variable-to-function mapping. Sequence diagram for computing Final Energy [by Carrier]|CoalsequenceDiagram
actor User
participant IAMCProcessor
participant MappingResolver
participant statistics_functions
participant pypsa_Network
participant pandas
User ->> IAMCProcessor: request Final_Energy_by_Carrier_Coal
IAMCProcessor ->> MappingResolver: resolve variable_name Final Energy [by Carrier]|Coal
MappingResolver -->> IAMCProcessor: Final_Energy_by_Carrier__Coal
IAMCProcessor ->> statistics_functions: Final_Energy_by_Carrier__Coal(n, aggregate_per_year)
statistics_functions ->> pypsa_Network: n.statistics.withdrawal(carrier=coal for industry, components=Load, aggregate_time=aggregate_per_year)
pypsa_Network -->> statistics_functions: industry_withdrawal (pd.Series or pd.DataFrame)
statistics_functions -->> IAMCProcessor: industry_withdrawal
IAMCProcessor -->> pandas: optional postprocessing/aggregation
pandas -->> IAMCProcessor: processed_series_or_dataframe
IAMCProcessor -->> User: IAMC variable Final Energy [by Carrier]|Coal
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Introduces a new statistics function for IAMC-variaöble Final Energy [by Carrier]|Coal
To Dos:
tests/- stick to the testing-READMEValidation
Summary by Sourcery
Add support for computing and mapping IAMC variable Final Energy [by Carrier]|Coal based on network statistics.
New Features: