Skip to content

Commit

Permalink
Adapt build_datapackage to follow new structure from data_adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Feb 29, 2024
1 parent 8d1d698 commit 54cc151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data_adapter_oemof/build_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def build_datapackage(
parametrized_sequences = {}
foreign_keys = {}
# Iterate Elements
for process_name, struct in adapter.get_process_list().items():
for process_name, struct in adapter.structure.processes.items():
process_data = adapter.get_process(process_name)
timeseries = process_data.timeseries
if isinstance(timeseries.columns, pd.MultiIndex):
Expand Down
5 changes: 1 addition & 4 deletions data_adapter_oemof/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

logger = logging.getLogger()

DEFAULT_MAPPING = {
"carrier": "carrier",
"tech": "tech",
}
DEFAULT_MAPPING = {}

Field = collections.namedtuple(typename="Field", field_names=["name", "type"])

Expand Down

0 comments on commit 54cc151

Please sign in to comment.