iiasa / ixmp

The ix modeling platform for integrated and cross-cutting scenario analysis
https://docs.messageix.org/ixmp
Apache License 2.0
37 stars 110 forks source link

Scenario.timeseries() not working when using transact() or check_out() #453

Open OFR-IIASA opened 1 year ago

OFR-IIASA commented 1 year ago

When a scenario object is checked out it is not possible to retrieve timeseries data.

Code sample or context

scen.check_out()
scen.timeseries()

or

with scen.transact():
    scen.timeseries()

Expected result

retrieve timeseries data; logic equivalent to that of parameters and/or sets.

Error message

*** at.ac.iiasa.ixmp.exceptions.at.ac.iiasa.ixmp.exceptions.IxException: at.ac.iiasa.ixmp.exceptions.IxException: This Scenario must be checked in before performing this operation!
khaeru commented 1 year ago

Added the 'bug' label and to the project tracker.

A minimal working example would help, here, as that could be more easily turned into a test.

OFR-IIASA commented 1 year ago

Executing the above lines of code on any given scenario should yield the error message above.