sedos-project / data_adapter_oemof

This respository holds the data adapters to connect oemof with the OEDatamodel-concrete.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Bus and FK detection when building datapackage must be adapter specific #70

Closed henhuy closed 3 months ago

henhuy commented 4 months ago

Currently, buses and foreign keys are read out from struct and component data independently from underlying adapter class. We have to make this more dynamic, as i.e. in MIMO facade buses are defined very uncommon: Neither bus, nor from_bus or to_bus are used as parameter names, but frombus which cannot be implement in a standard way but has to be done within the adapter.

I suggest moving mapping into adapter. This way every adapter can use standard mapping (as it is implemented right now), but also can overwrite the function get_buses() to its needs.