From 98052fbc9ab635d809560d80e3158ac0efc24a5f Mon Sep 17 00:00:00 2001 From: Sarthak Kapoor Date: Wed, 11 Sep 2024 14:04:00 +0200 Subject: [PATCH] Add sample class --- src/nomad_material_processing/general.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/nomad_material_processing/general.py b/src/nomad_material_processing/general.py index 67b4cf12..ad1d61c3 100644 --- a/src/nomad_material_processing/general.py +++ b/src/nomad_material_processing/general.py @@ -1265,4 +1265,18 @@ class CleaningRecipe(Cleaning, Recipe, EntryData): ) +class Sample(CompositeSystem, EntryData): + """ + Contains information about the sample id, geometry, and reference to the material + system under `components` sub-section. + """ + + components = CompositeSystem.components.m_copy() + components.section_def = SystemComponent + + geometry = SubSection( + section_def=Geometry, + ) + + m_package.__init_metainfo__()