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 |
|
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 ( |
2bf2493 to
3bc8760
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #552 +/- ##
=======================================
- Coverage 98.9% 98.3% -0.6%
=======================================
Files 44 49 +5
Lines 4790 5871 +1081
=======================================
+ Hits 4740 5775 +1035
- Misses 50 96 +46
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
With these fixes, the last thing to try before merging: can we use v45.7.0 for gams and gamsapi? This would be the oldest version allowed by our EDIT: This worked, so I'll keep that version for GAMS in CI. |
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
These arise from iiasa/ixmp#552.
These arise from iiasa/ixmp#552.
These arise from iiasa/ixmp#552.
- Platform as first positional argument, request as optional kwarg. - Aligns with make_austria() etc. - Adjust calls to use `test_mp` fixture explicitly. This allows the indirect parametrization of test_mp/backend per iiasa/ixmp#552 to function as intended.
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.Platformbacked by IXMP4Backend to be created and used.Notes
ixmp4from thetestsdependency, and don't install it on those Pythons.How to review
PR checklist