iiasa / message-ix-models

Tools for the MESSAGEix-GLOBIOM family of models
https://docs.messageix.org/models
Apache License 2.0
16 stars 31 forks source link

Ensure --regions CLI option can be used twice #145

Closed khaeru closed 5 months ago

khaeru commented 5 months ago

As raised by @adrivinca. This was previously-untested behaviour that the "water-ix" CLI command relied on; changes in #137 caused it to no longer work.

The PR restores the original behaviour by refining the code passed to exec_cb(), and adds a test to confirm.

How to review

PR checklist

adrivinca commented 5 months ago

thanks a lot. all looks fine to me. Also the test.