Skip to content

Commit

Permalink
Hide array_index
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-sarthak committed Jan 31, 2025
1 parent e63ed6d commit be3e5dc
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions src/nomad_measurements/xrd/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
from nomad.datamodel.metainfo.annotations import (
ELNAnnotation,
ELNComponentEnum,
Filter,
H5WebAnnotation,
SectionProperties,
)
from nomad.datamodel.metainfo.basesections import (
CompositeSystemReference,
Expand Down Expand Up @@ -582,7 +584,15 @@ class XRDResult1D(XRDResult):
Section containing the result of a 1D X-ray diffraction scan.
"""

m_def = Section()
m_def = Section(
a_eln=ELNAnnotation(
properties=SectionProperties(
visible=Filter(
exclude=['array_index'],
),
),
)
)

def generate_plots(self):
"""
Expand Down Expand Up @@ -767,7 +777,15 @@ class XRDResultRSM(XRDResult):
Section containing the result of a Reciprocal Space Map (RSM) scan.
"""

m_def = Section()
m_def = Section(
a_eln=ELNAnnotation(
properties=SectionProperties(
visible=Filter(
exclude=['array_index'],
),
),
)
)
q_parallel = Quantity(
type=np.dtype(np.float64),
shape=['*', '*'],
Expand Down Expand Up @@ -982,6 +1000,15 @@ class XRDResult1DHDF5(XRDResult):
Section containing the result of a 1D X-ray diffraction scan.
"""

m_def = Section(
a_eln=ELNAnnotation(
properties=SectionProperties(
visible=Filter(
exclude=['array_index'],
),
),
)
)
intensity = Quantity(
type=HDF5Reference,
description='The count at each 2-theta value, dimensionless',
Expand Down Expand Up @@ -1264,6 +1291,15 @@ class XRDResultRSMHDF5(XRDResult):
Section containing the result of a Reciprocal Space Map (RSM) scan.
"""

m_def = Section(
a_eln=ELNAnnotation(
properties=SectionProperties(
visible=Filter(
exclude=['array_index'],
),
),
)
)
intensity = Quantity(
type=HDF5Reference,
description='The count at each 2-theta value, dimensionless',
Expand Down

0 comments on commit be3e5dc

Please sign in to comment.