From 8a45a55d46868b5051e64ddca0c180f4fd5b3c19 Mon Sep 17 00:00:00 2001 From: Sarthak Kapoor Date: Mon, 16 Sep 2024 09:36:03 +0200 Subject: [PATCH] Reference any composite system in the sample reference --- src/nomad_measurements/transmission/schema.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/nomad_measurements/transmission/schema.py b/src/nomad_measurements/transmission/schema.py index f036313a..25813bef 100644 --- a/src/nomad_measurements/transmission/schema.py +++ b/src/nomad_measurements/transmission/schema.py @@ -70,7 +70,6 @@ SubSection, ) from nomad.units import ureg -from nomad_material_processing.general import Sample from nomad_measurements.utils import create_archive, merge_sections @@ -108,8 +107,8 @@ class TransmissionSpectrophotometer(Instrument, EntryData): class TransmissionSampleReference(CompositeSystemReference): """ - Reference to the sample used in the transmission measurement. Additionally, - contains the thickness and orientation of the sample. + Extends `CompositeSystemReference` to include contains the thickness and orientation + of the sample used in the transmission. """ m_def = Section( @@ -125,16 +124,6 @@ class TransmissionSampleReference(CompositeSystemReference): ) ) ) - reference = Quantity( - type=Sample, - description=""" - A reference to the sample used. - """, - a_eln=ELNAnnotation( - component='ReferenceEditQuantity', - label='sample reference', - ), - ) thickness = Quantity( type=np.float64, description="""