Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added substrate holder #62

Merged
merged 3 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 160 additions & 0 deletions src/nomad_material_processing/vapor_deposition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
ActivityStep,
PureSubstanceSection,
Component,
CompositeSystemReference,
)
from nomad.datamodel.metainfo.plot import (
PlotSection,
Expand All @@ -49,6 +50,7 @@
ThinFilmStackReference,
ThinFilmReference,
TimeSeries,
Geometry,
)

if TYPE_CHECKING:
Expand All @@ -62,6 +64,164 @@
m_package = Package(name='Vapor Deposition')


class InsertReduction(ArchiveSection):
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
"""
The reduction that sometimes is used to lodge the substrate in the substrate holder position..
"""
name = Quantity(
type=str,
description="""
A short and descriptive name for this insert reduction.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
insert_id = Quantity(
type=str,
description="""
The ID of the insert that is placed in this position to accomodate the substrate.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
material = Quantity(
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
type=str,
description="""
The material of the insert reduction.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
inner_geometry = SubSection(
section_def=Geometry,
)
outer_geometry = SubSection(
section_def=Geometry,
)

class SubstrateHolderPosition(ArchiveSection):
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
"""
One casing position of the substrate holder.
"""
name = Quantity(
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
type=str,
description="""
A short and descriptive name for this position.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
slot_geometry = SubSection(
section_def=Geometry,
)
insert_reduction = SubSection(
section_def=InsertReduction,
)
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved


class SubstrateHolder(ArchiveSection):
"""
The holder for the substrate.
"""
name = Quantity(
type=str,
description="""
A short and descriptive name for this position.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
lab_id = Quantity(
type=str,
description="""
The lab ID of the substrate holder.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
material = Quantity(
type=str,
description="""
The material of the holder.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.StringEditQuantity,
),
)
thickness = Quantity(
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
type=float,
unit='meter',
description="""
The thickness of the holder.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.NumberEditQuantity,
defaultDisplayUnit='micrometer',
),
)
outer_diameter = Quantity(
type=float,
unit='meter',
description="""
The outer diameter of the substrate holder.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.NumberEditQuantity,
defaultDisplayUnit='millimeter',
),
)
number_of_positions = Quantity(
type=int,
description="""
The number of positions on the holder.
""",
a_eln=ELNAnnotation(
component=ELNComponentEnum.NumberEditQuantity,
),
)
image = Quantity(
type=str,
description="""An image of the substrate holder.""",
a_browser={'adaptor': 'RawFileAdaptor'},
a_eln=ELNAnnotation(
component=ELNComponentEnum.FileEditQuantity,
),
)
positions = SubSection(
section_def=SubstrateHolderPosition,
repeats=True,
)


class FilledSubstrateHolderPosition(SubstrateHolderPosition):
"""
One casing position of the filled substrate holder.
"""
substrate = SubSection(
section_def=CompositeSystemReference,
description="""
The substrate that is placed in this position.
""",
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
)
)

class FilledSubstrateHolder(SubstrateHolder):
aalbino2 marked this conversation as resolved.
Show resolved Hide resolved
"""
A substrate holder that is filled with substrate(s).
"""
substrate_holder = SubSection(
section_def=SubstrateHolder,
)
positions = SubSection(
section_def=FilledSubstrateHolderPosition,
repeats=True,
)


class MolarFlowRate(TimeSeries):
"""
Molar flow rate is the amount of a substance which passes per unit of time.
Expand Down
Loading