Skip to content

Commit

Permalink
made annealing as a step shaped process
Browse files Browse the repository at this point in the history
  • Loading branch information
aalbino2 committed Aug 19, 2024
1 parent a405423 commit fd38e74
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions src/nomad_material_processing/general/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,41 @@ class EtchingRecipe(Etching, Recipe, EntryData):
)


class AnnealingStep(ActivityStep):
"""
A step of annealing process.
"""

m_def = Section()
duration = Quantity(
type=np.float64,
description='The elapsed time since the annealing process started.',
a_eln=ELNAnnotation(
component=ELNComponentEnum.NumberEditQuantity, defaultDisplayUnit='minute'
),
unit='second',
)
temperature = Quantity(
type=np.float64,
description='The temperature of the etching process.',
a_eln={'component': 'NumberEditQuantity', 'defaultDisplayUnit': 'celsius'},
unit='celsius',
)
agitation = Quantity(
type=MEnum(
'Magnetic Stirring',
'Sonication',
),
description='The agitation method used during the etching process.',
a_eln=ELNAnnotation(
component=ELNComponentEnum.EnumEditQuantity,
),
)
annealing_reagents = SubSection(
section_def=CompositeSystemReference,
)


class Annealing(Process, EntryData):
"""
Heat treatment process used to alter the material's properties,
Expand Down Expand Up @@ -149,8 +184,12 @@ class Annealing(Process, EntryData):
),
unit='second',
)
annealing_reagents = SubSection(
section_def=CompositeSystemReference,
steps = SubSection(
description="""
The steps of the annealing process.
""",
section_def=AnnealingStep,
repeats=True,
)


Expand Down

0 comments on commit fd38e74

Please sign in to comment.