From 4d9effc093a3cd51ed0d6b42d5df2b769f55a78f Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Tue, 10 Oct 2023 17:37:58 +0200 Subject: [PATCH] Fix syntax error in dictionary Addresses a part of #20. --- src/hydamo/hydamo/datamodel.py | 2 +- src/hydamo/hydamo/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydamo/hydamo/datamodel.py b/src/hydamo/hydamo/datamodel.py index 34eb008..7792cc2 100644 --- a/src/hydamo/hydamo/datamodel.py +++ b/src/hydamo/hydamo/datamodel.py @@ -195,7 +195,7 @@ def _get_schema(self): (i["dtype"] for i in self.validation_schema if i["id"] == "geometry"), None, ) - return {properties: properties, geometry: geometry} + return {"properties": properties, "geometry": geometry} def set_data( self, diff --git a/src/hydamo/hydamo/utils.py b/src/hydamo/hydamo/utils.py index b31d606..c73b9f0 100644 --- a/src/hydamo/hydamo/utils.py +++ b/src/hydamo/hydamo/utils.py @@ -27,7 +27,7 @@ def find_bgt_code( Returns ------- dict - dictionary with bgt-code of organization in the form {bgt_code: naam}. + dictionary with bgt-code of organization in the form {"bgt_code": name}. """ global BGT_DF