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

Build minimal example #5

Closed jnnr closed 1 year ago

jnnr commented 1 year ago

Adds a test that aims to reproduce the minimal example datapackage in tests/_files/tabular_datapackage_minimal_example.

Problems:

jnnr commented 1 year ago

Quoting @FelixMau: build_datapackage tries to pass the dictionary but the return from get_process_df is a dictionary with process names and csv file names.

expected input: {process_name: data (dict)}

actual input: {process_name: {csv_name: data(pd.DataFrame)}}

Maybe the Mapper class or build_datapackage function could be extended to take the dictionary of (multiple) Dataframes and parametrize with all Data corresponding to the passed process