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_datapackage` takes wrong instance of data #8

Closed FelixMau closed 1 year ago

FelixMau commented 1 year ago

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

jnnr commented 1 year ago

Thanks for documenting, @FelixMau. As this belongs to #5, I copied your comment there and close this.