-
Notifications
You must be signed in to change notification settings - Fork 153
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
Set duration_period in add_horizon() #286
Set duration_period in add_horizon() #286
Conversation
I guess you were not restarting the kernel or Jupyter—right? Searching for "Jupyter module reload" brings this and this as first results. |
Postponing to after v3.0. |
Per discussion in Slack, I'll jump in here to help complete this. |
change of data argument to **kwargs, and added automatic generation of *duration_period* parameter
7e35284
to
1dbf2e1
Compare
Codecov Report
@@ Coverage Diff @@
## master #286 +/- ##
==========================================
+ Coverage 90.32% 90.46% +0.13%
==========================================
Files 31 31
Lines 2740 2780 +40
==========================================
+ Hits 2475 2515 +40
Misses 265 265
Continue to review full report at Codecov.
|
bd7faab
to
bb39f30
Compare
Thanks @francescolovat! |
Thank you @khaeru for improving and merging this work! I see that just a little of my code survided to your exhaustive revision 😅 |
Should have been done in iiasa#286; mea culpa.
Remove calls to Scenario.add_par("duration_period", …); since #286 these are redundant when .add_horizon() is used.
This PR closes #282.
This PR edits the
add_horizon
method forScenario
class found in/message_ix/core.py
Change of
data
argument to**kwargs
, and added automatic generation of duration_period parameter. Added description in the docstring ofadd_horizon
.Still, from #282 the following bullet needs to be addressed:
Please help, @khaeru I don't know why the changes in the
core.py
file are not reflected in the jupyter notebook files for the tutorials (I was testing my changes in the Westeros tutorial file but nothing was changing when I was editing or even commenting some methods incore.py
).PR checklist: