Skip to content

Commit

Permalink
Hide method and steps in PolymerizationReaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-sarthak committed Aug 16, 2024
1 parent 1239c8a commit 8178327
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
import numpy as np
from nomad.config import config
from nomad.datamodel.data import ArchiveSection, Schema, Section
from nomad.datamodel.metainfo.annotations import ELNAnnotation, ELNComponentEnum
from nomad.datamodel.metainfo.annotations import (
ELNAnnotation,
ELNComponentEnum,
Filter,
SectionProperties,
)
from nomad.datamodel.metainfo.basesections import (
Activity,
CompositeSystem,
Expand Down Expand Up @@ -85,6 +90,13 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
class PolymerizationReaction(Activity, Schema):
m_def = Section(
description='Schema for polymerization reaction.',
a_eln=ELNAnnotation(
properties=SectionProperties(
visible=Filter(
exclude=['method', 'steps'],
),
),
),
)
monomers = SubSection(
description='Monomers used in the polymerization reaction.',
Expand Down

0 comments on commit 8178327

Please sign in to comment.