-
Notifications
You must be signed in to change notification settings - Fork 5
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
Separate Regularity from Core #246
Conversation
8057d84
to
8b226c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Most changes seems expected to me, but I'm not sure why the PartialEmissionResult
was needed. Is it because regularity/calendar day was needed to calculate intensities?
for key in emissions | ||
} | ||
|
||
def to_full_result( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_full_emission_result?
@@ -903,3 +1253,35 @@ def get_results(self) -> EnergyCalculatorResult: | |||
emission_results=self.emission_results, | |||
variables_map=self.variables_map, | |||
) | |||
|
|||
def convert_to_timeseries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the name here?
src/libecalc/dto/components.py
Outdated
timesteps=variables_map.time_vector, | ||
values=list( | ||
rate.evaluate( | ||
variables_map.get_subset_from_period(period).variables, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably outdated?
8b226c9
to
264edeb
Compare
Regularity should not be transferred or handled in core. At the time data arrives in core, it should only be stream day, and we should not have to relate to "what type of rate" is it, until we decide whether the user output should be calendar or stream day (default) based on user needs. Refs ECALC-196
264edeb
to
206e69e
Compare
Regularity should not be transferred or handled in core. At the time data arrives in core, it should only be stream day, and we should not have to relate to "what type of rate" is it, until we decide whether the user output should be calendar or stream day (default) based on user needs. Refs ECALC-196
Regularity should not be transferred or handled in core. At the time data arrives in core, it should only be stream day, and we should not have to relate to "what type of rate" is it, until we decide whether the user output should be calendar or stream day (default) based on user needs. Refs ECALC-196
Why is this pull request needed?
This pull request is needed because of....
What does this pull request change?
Write summary of what this pull request changes if needed.
Issues related to this change: