From 81343b1b2e8bcef69575742ca1ee2c550d04e312 Mon Sep 17 00:00:00 2001 From: MaGering Date: Tue, 1 Aug 2023 19:08:20 +0200 Subject: [PATCH] Fix name of profile in field efficiency --- src/oemof/tabular/datapackage/building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oemof/tabular/datapackage/building.py b/src/oemof/tabular/datapackage/building.py index 1302fe99..57bac862 100644 --- a/src/oemof/tabular/datapackage/building.py +++ b/src/oemof/tabular/datapackage/building.py @@ -140,7 +140,7 @@ def infer_metadata( r.descriptor["schema"]["foreignKeys"].append( { "fields": key, - "reference": {"resource": key + "_profile"}, + "reference": {"resource": r.name + "_profile"}, } )