quintel / etm-esdl

http://esdl.energytransitionmodel.com/api/v1/
1 stars 0 forks source link

Switch to pyESDL from custom EnergySystemHandler #70

Closed noracato closed 2 years ago

noracato commented 2 years ago

The people from TNO have expanded on the EnergySystemHandler themselves (as we did in the app). They released it recently as the pyESDL package. This package also takes care of keeping the ESDL resource up-to-date. Switching to this package thus means a lot less work for us to keep up with new ESDL versions.

The get_by_id and get_all_instances_of_type methods defined by pyESDL work slightly different (and a bit slower) than the ones we used. This slower lookup seems to fix the simultaneous requests issue (#68). Altough I feel we still need to keep an eye out for this issue to pop up again.

For now I opted to insert all our 'extra' methods that we defined on the EnergySystemHandler over the years into the pyESDL class.


Closes #68 Closes #66