quintel / etengine

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

Add active/mutable field to input parameters endpoint #1446

Closed robcalon closed 2 weeks ago

robcalon commented 3 months ago

When processing scenario parameters the inputs endpoint at https://engine.energytransitionmodel.com/api/v3/scenarios/xxxx/inputs provides valuable information on which parameters are active in the model and which parameters are disabled. Unfortunately, all parameters are set to disabled when accessing a read_only scenario making it harder to process read_only scenarios from this endpoint.

Would it be possible to add an addition flag to the input parameters to make a distinction between the parameter being used by ETEngine in evaluating the scenario and the current user being allowed to change the parameter via the API?

Additionally a third field could be desirable to indicate if an external coupling node has been activated. I currently see only two imperfect ways to check if an external coupling node is in use:

Especially with the recently implemented multi user support for scenarios I'm expecting some issues when read_only users need to export scenario data via the API.

robcalon commented 3 months ago

@noracato could you also have a look at the options for this one?

github-actions[bot] commented 1 month 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.

noracato commented 2 weeks ago

Should be fixed now!