-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: target_market_share
gains extended time-horizon for target_*
outputs, to entire time-horizon of input scenario
#481
Conversation
Going to mark this as draft again while I look into these failings checks |
There is an error in the This issues is caused by: the I don't really know what to do in this case... @jacobvjk any thoughts? |
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.
first set of comments. I will have to go through this again, especially the changes in join_abcd_scenario()
Would the deprecation of these functions remove the methodological issue or would it pop up again elsewhere? But this is an initial intuition. Please correct me if there are flaws in my thinking here |
Documenting that we discussed this in an in-person call and opened #482 as a 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.
NB: bit unsure if it's better to remove the check_crucial_names
for more variables than "production"
or of it would be preferable to just add a switch for that. For users it won't make a difference. But I can see the point in not making the code base more complicated than necessary too.
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.
lgtm
Note: This required some significant changes to every exported function, e.g.:
join_abcd_scenario
summarize_weighted_production
target_market_share
A quick explanation of the changes that were made:
join_abcd_scenario
- now outputs a dataset that:year
that is the shared minimum value ofyear
between theabcd
andscenario
inputsyear
that is the maximumyear
ofscenario
NOTE: this means that it fills in theproduction
andemission_factor
values asNA
s, since it cannot infer them from the `abcd)summarize_weighted_production
- no longer complains if it receives an input withNA
values inproduction
target_market_share
had to have some things move around a bit, as the input data structure is now slightly expanded to include this newNA
values of production.Closes #157