Skip to content

Commit

Permalink
add sample mounting and fix orders
Browse files Browse the repository at this point in the history
  • Loading branch information
budschi committed Sep 19, 2024
1 parent 1dafe50 commit ece35d2
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions src/nomad_ikz_raman/schema_packages/raman.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import plotly.express as px
from nomad.config import config
from nomad.datamodel.data import ArchiveSection, EntryData
from nomad.datamodel.metainfo.annotations import ELNAnnotation, SectionProperties
from nomad.datamodel.metainfo.basesections import (
CompositeSystemReference,
Instrument,
Expand Down Expand Up @@ -292,6 +293,33 @@ class Results(MeasurementResult, PlotSection):
)


class Sample(CompositeSystemReference):
m_def = Section(
a_eln=ELNAnnotation(
properties=SectionProperties(
order=[
'name',
'reference',
'lab_id',
'pointing_vector',
'crystallographic_direction_of_E_vector',
],
),
overview=True,
)
)
pointing_vector = Quantity(
type=str,
description='Pointing vector referenced to surface normal in h k l, e.g. (100).',
a_eln={'component': 'StringEditQuantity'},
)
crystallographic_direction_of_E_vector = Quantity(
type=str,
description='E vector corresponding to crystallographic direction, e.g. {111}',
a_eln={'component': 'StringEditQuantity'},
)


class RamanSpectrometer(Instrument, EntryData, ArchiveSection):
"""
Class autogenerated from yaml schema.
Expand Down Expand Up @@ -371,7 +399,22 @@ class Ramanspectroscopy(Measurement, PlotSection, EntryData, ArchiveSection):
"""

m_def = Section(
a_eln=None,
a_eln=ELNAnnotation(
properties=SectionProperties(
order=[
'name',
'datetime',
'title',
'lab_id',
'data_file',
'project',
'operator',
'location',
'method',
'description',
],
)
),
a_template={
'manualsettings': {},
},
Expand Down Expand Up @@ -413,7 +456,7 @@ class Ramanspectroscopy(Measurement, PlotSection, EntryData, ArchiveSection):
description='Data file *.xml containing the Raman data.',
a_eln={'component': 'FileEditQuantity'},
)

samples = SubSection(section_def=Sample)
instruments = SubSection(
section_def=RamanSpectrometerReference,
)
Expand Down

0 comments on commit ece35d2

Please sign in to comment.