From bb072bf06154858699095bb41b9404355e302b57 Mon Sep 17 00:00:00 2001 From: Sarthak Kapoor Date: Fri, 16 Aug 2024 13:14:01 +0200 Subject: [PATCH] Add section m_def for PolymerizationReaction --- .../schema_packages/polymerization.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nomad_polymerization_reactions/schema_packages/polymerization.py b/src/nomad_polymerization_reactions/schema_packages/polymerization.py index b6ec37b..9f068f1 100644 --- a/src/nomad_polymerization_reactions/schema_packages/polymerization.py +++ b/src/nomad_polymerization_reactions/schema_packages/polymerization.py @@ -12,7 +12,7 @@ import numpy as np from nomad.config import config -from nomad.datamodel.data import ArchiveSection, Schema +from nomad.datamodel.data import ArchiveSection, Schema, Section from nomad.datamodel.metainfo.annotations import ELNAnnotation, ELNComponentEnum from nomad.datamodel.metainfo.basesections import ( Activity, @@ -83,6 +83,9 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None: class PolymerizationReaction(Activity, Schema): + m_def = Section( + description='Schema for polymerization reaction.', + ) monomers = SubSection( description='Monomers used in the polymerization reaction.', section_def=Monomer,