-
Notifications
You must be signed in to change notification settings - Fork 114
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
Implement ixmp4 shim #552
base: main
Are you sure you want to change the base?
Implement ixmp4 shim #552
Conversation
Thanks for starting this PR! I have reworked the setup part of the tests so that Aside from questions like this, I think the tests are looking good: most |
I'm not sure if the sqlite dsn |
Have a look at JDBCBackend.handle_config(): Lines 341 to 397 in 58e801c
As it stands, this method is called via Config.add_platform(); either from code or using args from the CLI. The dict returned by handle_config() is then stored in the config (file), and should contain only valid keyword arguments for the This mechanism is pretty old, e.g. it predates mature Python |
Attempts to initialize each of JDBCBackend and IXMP4Backend.
Thanks for the suggestion :) Maybe I'll get a better feeling for what we need or what's helpful by first trying to add some other functions that should already be supported by ixmp4 :) |
Yes, agreed—I'd say our first target is to get some or more tests passing, and then we can look at tidying up any hacks that are required to get to that point. As long as we mark them clearly ( |
81de173
to
2bf2493
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #552 +/- ##
=======================================
- Coverage 98.8% 98.1% -0.8%
=======================================
Files 44 45 +1
Lines 4790 4898 +108
=======================================
+ Hits 4737 4807 +70
- Misses 53 91 +38
|
This PR is intended to aid @glatterf42 in developing model data features in ixmp4. It is not a complete plan or solution for migrating ixmp-based code, workflows, and research to ixmp4; such a plan would involve many additional elements that are not in scope for this PR.
The PR:
ixmp.Platform
backed by IXMP4Backend to be created and used.Notes
ixmp4
from thetests
dependency, and don't install it on those Pythons.How to review
TBD. This branch/PR may not necessarily be merged itself, but may serve as the basis for another PR that adds the IXMP4Backend.
PR checklist