Skip to content

Commit

Permalink
25 add thin film reference to pvd process (#26)
Browse files Browse the repository at this point in the history
* Added thin-film to PVD process

* Changed to append task out- and inputs
  • Loading branch information
hampusnasstrom authored Dec 14, 2023
1 parent 55263ed commit 21261ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nomad_material_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/nomad_material_processing/physical_vapor_deposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from nomad_material_processing import (
SampleDeposition,
ThinFilmStack,
ThinFilm,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 21261ec

Please sign in to comment.