Skip to content

Commit

Permalink
Fixed DMFT workflow TB sections (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 authored Nov 20, 2023
1 parent 4f54eef commit 6f25e41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions electronicparsers/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ def parse_dmft_workflow(self, wannier_archive: EntryArchive, dmft_workflow_archi
workflow.name = 'DMFT'

# Method
method_proj = extract_section(wannier_archive, ['run', 'method', 'projection'])
method_proj = extract_section(wannier_archive, ['run', 'method', 'tb'])
method_dmft = extract_section(self.archive, ['run', 'method', 'dmft'])
workflow.method.projection_method_ref = method_proj
workflow.method.tb_method_ref = method_proj
workflow.method.dmft_method_ref = method_dmft

# Inputs and Outputs
Expand All @@ -411,20 +411,20 @@ def parse_dmft_workflow(self, wannier_archive: EntryArchive, dmft_workflow_archi
# Wannier90 task
if wannier_archive.workflow2:
task = TaskReference(task=wannier_archive.workflow2)
task.name = 'Projection'
task.name = 'TB'
# TODO check why this re-writting is necessary to not repeat sections inside tasks
if input_structure:
task.inputs = [Link(name='Input structure', section=input_structure)]
if wannier_calculation:
task.outputs = [Link(name='Output Projection calculation', section=wannier_calculation)]
task.outputs = [Link(name='Output TB calculation', section=wannier_calculation)]
workflow.m_add_sub_section(DMFT.tasks, task)

# DMFT task
if self.archive.workflow2:
task = TaskReference(task=self.archive.workflow2)
task.name = 'DMFT'
if wannier_calculation:
task.inputs = [Link(name='Output Projection calculation', section=wannier_calculation)]
task.inputs = [Link(name='Output TB calculation', section=wannier_calculation)]
if dmft_calculation:
task.outputs = [Link(name='Output DMFT calculation', section=dmft_calculation)]
workflow.m_add_sub_section(DMFT.tasks, task)
Expand Down

0 comments on commit 6f25e41

Please sign in to comment.