quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

Facilitate easy migration of multiple scenarios between live and staging #1348

Closed mabijkerk closed 9 months ago

mabijkerk commented 1 year ago

Background Currently it is challenging to migrate a scenario manually from live to staging. This is because not only the inputs have to be migrated (which can be achieved easily by copy-pasting the scenario inputs between the engines), but each merit order and especially all adjusted curves have to be migrated as well. The curves are not visible in the engine scenario view.

Currently we typically ask a developer to migrate such scenarios. Given the current limited availability of our developers, this means that it can take a while for scenarios to be migrated, especially when it concerns multiple scenarios, as in https://github.com/quintel/mechanical_turk/issues/168#issuecomment-1504800483

Solution I'm not sure what the best solution would be to enable easy migration of multiple scenario between live and staging (both directions). @noracato or @thomas-qah do you think something like this could be implemented for the modellers? If so, who of you can pick this up?

Notifying @Charlottevm

noracato commented 11 months ago

I think with small change to the quintel/scenario-tools you should be able to do it. For example we could add a small command that allows you to download everything from a scenario from one server, and upload it into another (which could as well be your localhost).

github-actions[bot] commented 9 months ago

This issue has had no activity for 60 days and will be closed in 7 days. Removing the "Stale" label or posting a comment will prevent it from being closed automatically. You can also add the "Pinned" label to ensure it isn't marked as stale in the future.

mabijkerk commented 9 months ago

What is the status of this issue? I believe @thomas-qah has created a tool? Is this something modellers can easily use as well?

noracato commented 9 months ago

Yes! You can find documentation on @thomas-qah script here.

I'll close this one now