-
Notifications
You must be signed in to change notification settings - Fork 33
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
Migrate .model.disutility #13
Conversation
broadcast, copy_column, ffill, make_io, make_matched_dfs, make_source_tech, merge_data, same_node
Codecov Report
@@ Coverage Diff @@
## main #13 +/- ##
===========================================
+ Coverage 99.90% 100.00% +0.09%
===========================================
Files 26 28 +2
Lines 1049 1318 +269
===========================================
+ Hits 1048 1318 +270
+ Misses 1 0 -1
|
ab579b5
to
9058605
Compare
3c4864d
to
9c1ee66
Compare
The added Case AWith no values for
Case BWith values for
Case CNow, the disutility of t1 for group g0 is increased from 0.1 to 0.2. The output is:
|
36de662 changes the implementation: instead of using different labels on the Similar tests: cases D, E, F correspond to A, B, C respectively: Case DWithout
Case EWith only
Case FNow with unequal disutility. Because the model is already choosing (Case E) to shift g0 into t0, we increase the disutility of t0 for g0 in 2025 from 0.1 to 0.2:
|
Per some discussion today in the MESSAGEix meeting:
This is because the
It was pointed out that technical_lifetime is optional in this case, so removed it entirely. The code to set it is still visible in 1c0ef73, as well as the function |
As well:
.util
used by.model.disutility
.duration_period
when constructed off an existing scenario.Partially addresses #4.