-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update water
to use cost projections from tools.costs
#243
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #243 +/- ##
=======================================
- Coverage 76.5% 75.6% -1.0%
=======================================
Files 203 203
Lines 15546 15578 +32
=======================================
- Hits 11896 11779 -117
- Misses 3650 3799 +149
|
77915c3
to
466b218
Compare
hi! some notes:
i'll be away for 2 weeks so won't be very responsive to any reviews/feedback during this time, but i can address any comments upon my return. thank you! |
Since @measrainsey is away, I'll update this with rebase after the merge of #242. EDIT: Seems that failed, so someone will have to do a manual rebase. |
2ca19d3
to
13a7aca
Compare
With Meas we were trying to add the SSP dimension as an input variable to our scenarios and configuration. Also, it seems now that in the current script Meas is assigning
While, apparently to make the code work I need to write |
@adrivinca I will try to take a look tomorrow. I am not entirely clear on what your requirement is here, but my hunch is that it can be resolved by modifying the existing CLI option or how you use it, and does not require an entire duplicate. |
Okay, I've added a new function/decorator I'll next do the following:
|
Okay, now done. Let's see if the checks pass. I had another thought while looking at this code. It seems like there are a number of settings that the message-ix-models/message_ix_models/tests/model/water/data/test_water_for_ppl.py Lines 90 to 98 in 0645fd5
One pattern we are trying to use more often is to have module-specific There are few reasons for doing this. One is to allow for the real or imaginable possibility that someone says "Run the There are a number of examples of Config classes now in the code base, but if you like I can help set one up and show how to adapt the code. |
Hi all, then, as discussed with Paul, we will address any possible changes to the config in a separate PR and we can merge this one. |
I see that the PR checklist is not complete, and we haven't had anyone requested to review (thus no completed review). @adrivinca would you prefer that…
|
0918680
to
bbab7e9
Compare
I updated the introduction, checked the work, rebased and updated the whatsnew file. |
Thanks! If you go to the details of that failed test, you will find the following lines: ___________ message_ix_models/tests/tools/costs/test_projections.py ____________
[gw2] darwin -- Python 3.11.9 /Library/Frameworks/Python.framework/Versions/3.11/bin/python
worker 'gw2' crashed while running 'message_ix_models/tests/tools/costs/test_projections.py::test_bare_res[R12]' Which tell you that this is not your fault at all, the computer handling this test simply crashed. So I restarted the test and expect it to complete :) So do I understand correctly that you want us to review this PR again, now? |
I think it could be merged asap |
…gies NOTES: - This creates an `inv_cost` that is the same format as the previous `inv_cost` - This updated method also has the period 2020 in the output, which the previous method did not - Currently the specified cost projection method is the GDP convergence method - We want to add the functionality to get cost projects for a specific SSP scenario. I have tentatively added a `context.ssp` as the parameter for the cost module Config, but this `ssp` parameter does not exist in the Context currently I believe. So will need to add that.
06d81f2
to
6e2ba3b
Compare
I'll merge as soon as the tests complete after the rebase. |
This PR changes the code in the
water
model to use the regionally-differentiated and scenario-specific cost projections created bytools.costs
.Currently the costs for cooling technologies are being read from an input CSV and kept constant over the time horizon.
This PR's branch is derived from the
wat_SSP_upd2
branch, so this branch can be rebased once #242 is closed or merged into that branch.How to review
For @adrivinca: Check if the implementation is correct and if the outputs make sense.
For @khaeru and/or @glatterf42 : Read the diff and note that the CI checks all pass.
PR checklist