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

How to remove a variable from a scenario? #452

Open behnam-zakeri opened 1 year ago

behnam-zakeri commented 1 year ago

message_ix.Scenario has methods for removing sets and parameters, remove_set() and remove_par(), respectively. However, there seems not to have such a method for removing a variable (e.g., remove_var()). This makes it almost impossible to remove an extra variable, which may was added by mistake, or more importantly to change the index sets of a variable by removing and initializing that variable again. Is there any intention for not having this feature, or am I missing something out?

khaeru commented 1 year ago

I will transfer this to ixmp, as it concerns features that aren't located in message_ix per se.