From 5f90559795b9a501ed777d106ee4dfd9da5d2313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Sch=C3=B6ppach?= Date: Thu, 7 Nov 2024 16:26:41 +0100 Subject: [PATCH] Refactor inheritance for Synthesis and SynthesisStep --- src/perovskite_tandem_database/schema_packages/tandem.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/perovskite_tandem_database/schema_packages/tandem.py b/src/perovskite_tandem_database/schema_packages/tandem.py index 5b215db..2a92180 100644 --- a/src/perovskite_tandem_database/schema_packages/tandem.py +++ b/src/perovskite_tandem_database/schema_packages/tandem.py @@ -6,6 +6,7 @@ ActivityStep, ElementalComposition, Process, + ProcessStep, ) from nomad.metainfo import Quantity, Section, SubSection from nomad.metainfo.data_type import Enum @@ -189,7 +190,7 @@ class Storage(ArchiveSection): ) -class SynthesisStep(Activity, ArchiveSection): +class SynthesisStep(ProcessStep): """ A section describing a general synthesis step. More specific synthesis steps are inherited from this class. @@ -251,7 +252,7 @@ class SynthesisStep(Activity, ArchiveSection): ) -class CleaningStep(ActivityStep): +class CleaningStep(ProcessStep): """ A cleaning procedure step. """ @@ -259,7 +260,7 @@ class CleaningStep(ActivityStep): pass -class Cleaning(Activity): +class Cleaning(Process): """ A section describing a cleaning procedure. Typically before a subsequent synthesis step. """ @@ -333,7 +334,7 @@ class GasPhaseSynthesis(SynthesisStep): ) -class Synthesis(Process, ArchiveSection): +class Synthesis(Process): steps = SubSection(section_def=SynthesisStep, repeats=True)