Skip to content

Commit

Permalink
Fix BdG call before assignment in submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Raff-physics committed May 29, 2024
1 parent 093c343 commit b9ac704
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiida_kkr/workflows/kkr_STM.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,13 @@ def STM_lmdos_run(self):
y = self.inputs.tip_position['ny']

calc = self.submit(builder)

message = f"""INFO: running DOS step for an STM measurement (pk: {calc.pk}) at position
(ilayer: {self.inputs.tip_position['ilayer']}, da: {x}, db: {y} )"""

if self.inputs.BdG.params_kkr_overwrite:
message = f"""INFO: runnig DOS step (pk: {calc.pk}) BdG is present"""
if 'BdG' in self.inputs:
if self.inputs.BdG.params_kkr_overwrite:
message = f"""INFO: runnig DOS step (pk: {calc.pk}) BdG is present"""

print(message)
self.report(message)
Expand Down

0 comments on commit b9ac704

Please sign in to comment.