-
Notifications
You must be signed in to change notification settings - Fork 35
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 message_data.model.transport
#207
Conversation
message_data.model.transport
message_data.model.transport
currently identical to test_demand.test_exo()
needed for corresponding "transport other *" technologies.
- Add .testing.preserve_report_callbacks fixture for this and similar cases.
- Mark .transport.base.smooth() as requiring pandas 2.0. - Mark .transport.build.get_computer() as requiring message_ix 3.8. - Mark .transport.ldv.capacity_factor() as requiring message_ix 3.6. - Mark tests using these functions directly or indirectly.
Manual adjustments for `.model.transport` migration
The test coverage of the added code is about 80%; compare with |
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.
Overall, this PR looks great to me :)
I've noted some changes I would like to see, most of which are fine in follow-up PRs, though. The one thing I would like to request is that we should really avoid importing from message_data with code in here.
Once that is done and no tests break because of it, I'll approve :)
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.
Thanks for addressing my comments so quickly. With several follow-up issues opened and the intention to address them somewhat soon, I'm fine with approving this.
Thanks for the review! |
- Ensure new modules from #207 are packaged. - Exclude .github etc. from distributions (parallel to iiasa/message_ix).
- Ensure new modules from #207 are packaged. - Exclude .github etc. from distributions (parallel to iiasa/message_ix).
This pull request migrates MESSAGEix-Transport and its data/commit history from the private
message_data
repo.After #208 is completed, approved, and merged into this branch, CI checks should pass and this PR can be approved and merged.
Preparation
The process roughly uses the migration process from the docs, starting from iiasa/message_data@fff251a4e3c2403f978e99d78e3b64108b357b83 (
dev
branch). I used the attached replacements.txt…and the following settings in migrate.py:
…plus some other improvements that I will commit separately. This yields rebase-todo.txt. The rebase is performed with
git rebase --interactive main
, i.e. without--empty=drop
. This is to keep the commits that link the history to the many PRs in message_data that developed the code.How to review
.model.transport
migration #208 and its reviews.PR checklist