From 21261ec10cd8704d590e8224c40d27de2cd5104e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20N=C3=A4sstr=C3=B6m?= Date: Thu, 14 Dec 2023 11:09:36 +0100 Subject: [PATCH] 25 add thin film reference to pvd process (#26) * Added thin-film to PVD process * Changed to append task out- and inputs --- src/nomad_material_processing/__init__.py | 4 ++-- src/nomad_material_processing/physical_vapor_deposition.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/nomad_material_processing/__init__.py b/src/nomad_material_processing/__init__.py index 68abfbc..4c1992a 100644 --- a/src/nomad_material_processing/__init__.py +++ b/src/nomad_material_processing/__init__.py @@ -353,9 +353,9 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None: previous = None for step in self.steps: task = step.to_task() - task.outputs = [Link(name=step.name, section=step)] + task.outputs.append(Link(name=step.name, section=step)) if previous is not None: - task.inputs = [Link(name=previous.name, section=previous)] + task.inputs.append(Link(name=previous.name, section=previous)) tasks.append(task) previous=step archive.workflow2.tasks = tasks diff --git a/src/nomad_material_processing/physical_vapor_deposition.py b/src/nomad_material_processing/physical_vapor_deposition.py index c073c98..04000f5 100644 --- a/src/nomad_material_processing/physical_vapor_deposition.py +++ b/src/nomad_material_processing/physical_vapor_deposition.py @@ -41,6 +41,7 @@ from nomad_material_processing import ( SampleDeposition, ThinFilmStack, + ThinFilm, ) if TYPE_CHECKING: @@ -214,6 +215,12 @@ class PVDSubstrate(ArchiveSection): ''', type=ThinFilmStack, ) + thin_film = Quantity( + description=''' + The thin film that is being created during this step. + ''', + type=ThinFilm, + ) temperature = SubSection( section_def=PVDSubstrateTemperature, )