From 5d2707ddeac12272f0572719a24c6b9793658b3a Mon Sep 17 00:00:00 2001 From: "Francesca.L.Bleken@sintef.no" Date: Wed, 17 Jan 2024 12:16:42 +0100 Subject: [PATCH] Added boolean datatype for converting from cuds 2 dlite --- dlite_cuds/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlite_cuds/utils/utils.py b/dlite_cuds/utils/utils.py index 54b74ba..c5d262a 100644 --- a/dlite_cuds/utils/utils.py +++ b/dlite_cuds/utils/utils.py @@ -19,8 +19,8 @@ def datatype_cuds2dlite(datatype): return "string" if dtype == "http://www.w3.org/2001/XMLSchema#integer": return "int64" - # if datatype == "bool": - # return "bool" + if dtype == "http://www.w3.org/2001/XMLSchema#boolean": + return "bool" # if datatype == "datetime": # return "datetime" # if datatype == "quantity":