From a69db39765dd678dba803ab24c913d6d3b319d9d Mon Sep 17 00:00:00 2001
From: Lauri Himanen <lauri.himanen@gmail.com>
Date: Mon, 18 May 2020 14:57:03 +0300
Subject: [PATCH] Fixed invalid mapping type.

---
 nomad/datamodel/optimade.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nomad/datamodel/optimade.py b/nomad/datamodel/optimade.py
index 07cdab1e34..905a1e9964 100644
--- a/nomad/datamodel/optimade.py
+++ b/nomad/datamodel/optimade.py
@@ -173,7 +173,7 @@ class OptimadeEntry(MSection):
     dimension_types = Quantity(
         type=int, shape=[3], default=[0, 0, 0],
         links=optimade_links('h.6.2.8'),
-        a_search=Search(value=lambda a: sum(a.dimension_types), mapping=Integer),
+        a_search=Search(value=lambda a: sum(a.dimension_types), mapping=Integer()),
         a_optimade=Optimade(query=True, entry=True),
         description='''
             List of three integers. For each of the three directions indicated by the three lattice
-- 
GitLab