Skip to content

Commit

Permalink
Add sections for RSM and 1D which uses HDF5 references
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-sarthak committed Sep 5, 2024
1 parent d583974 commit a9a8d00
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions src/nomad_measurements/xrd/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,68 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger'):
break


class XRDResult1D_HDF5(XRDResult1D):
intensity = Quantity(
type=HDF5Reference,
description='The count at each 2-theta value, dimensionless',
)
two_theta = Quantity(
type=HDF5Reference,
description='The 2-theta range of the diffractogram',
)
q_norm = Quantity(
type=HDF5Reference,
description='The norm of scattering vector *Q* of the diffractogram',
)
omega = Quantity(
type=HDF5Reference,
description='The omega range of the diffractogram',
)
phi = Quantity(
type=HDF5Reference,
description='The phi range of the diffractogram',
)
chi = Quantity(
type=HDF5Reference,
description='The chi range of the diffractogram',
)


class XRDResultRSM_HDF5(XRDResultRSM):
intensity = Quantity(
type=HDF5Reference,
description='The count at each 2-theta value, dimensionless',
)
two_theta = Quantity(
type=HDF5Reference,
description='The 2-theta range of the diffractogram',
)
q_norm = Quantity(
type=HDF5Reference,
description='The norm of scattering vector *Q* of the diffractogram',
)
omega = Quantity(
type=HDF5Reference,
description='The omega range of the diffractogram',
)
phi = Quantity(
type=HDF5Reference,
description='The phi range of the diffractogram',
)
chi = Quantity(
type=HDF5Reference,
description='The chi range of the diffractogram',
)
q_parallel = Quantity(
type=HDF5Reference,
description='The scattering vector *Q_parallel* of the diffractogram',
)
q_perpendicular = Quantity(
type=HDF5Reference,
description='The scattering vector *Q_perpendicular* of the diffractogram',
)


class XRayDiffraction(Measurement):
"""
Generic X-ray diffraction measurement.
Expand Down

0 comments on commit a9a8d00

Please sign in to comment.