From 3e8fa27138eedc79ad8b36b42b3d3e11b49f01d2 Mon Sep 17 00:00:00 2001 From: Alvin Noe Ladines Date: Mon, 26 Aug 2024 14:31:41 +0200 Subject: [PATCH] Fix metainfo issue in h5md --- atomisticparsers/h5md/metainfo/h5md.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/atomisticparsers/h5md/metainfo/h5md.py b/atomisticparsers/h5md/metainfo/h5md.py index f2621e1..11c66d0 100644 --- a/atomisticparsers/h5md/metainfo/h5md.py +++ b/atomisticparsers/h5md/metainfo/h5md.py @@ -212,6 +212,13 @@ class Author(MSection): ) +class Program(runschema.run.Program): + m_def = Section( + validate=False, + extends_base_section=True, + ) + + class Run(runschema.run.Run): m_def = Section( validate=False, @@ -229,4 +236,4 @@ class Run(runschema.run.Run): x_h5md_author = SubSection(sub_section=Author.m_def) - x_h5md_creator = SubSection(sub_section=runschema.run.Program.m_def) + x_h5md_creator = SubSection(sub_section=Program.m_def)