Skip to content

Commit

Permalink
Solved a small issue where there was a conflict between the old and n…
Browse files Browse the repository at this point in the history
…ew version of a helper function in the kkr_STM
  • Loading branch information
Raff-physics committed Oct 4, 2024
1 parent 77c0757 commit 02b1aaf
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions aiida_kkr/workflows/kkr_STM.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ def impurity_cluster_evaluation(self):

if _VERBOSE_:
from time import time

# measure time at start
t_start = time()

Expand Down Expand Up @@ -439,18 +438,26 @@ def get_scanning_positions(self, host_remote):
# TODO: improve the validity check
generate_scan_positions = False

if _VERBOSE_:
if generate_scan_positions:
self.report('The scanning positions have been given by the user')
else:
self.repotr('The scanning positions were automatically generated')

if generate_scan_positions:

# Information of the host structure
struc_info, symm_matrices = tools_STM_scan.STM_pathfinder(host_remote)

# We now want to iterate over several in-plane positions.
# These are the number of vectors in which we want to move the STM tip.
x = self.inputs.tip_position['nx']
y = self.inputs.tip_position['ny']
nx = self.inputs.tip_position['nx']
ny = self.inputs.tip_position['ny']

# Path creation step. (The the identity operator is present, but will be excluded)
unused_pos, used_pos = tools_STM_scan.lattice_generation(x, y, symm_matrices, struc_info['plane_vectors'])
unused_pos, used_pos = tools_STM_scan.lattice_generation(
symm_matrices, struc_info['plane_vectors'], 0, 0, nx, ny
)

# Since the combine tools use the element already in the units of da and db, we use a helper function
# to have the indices of the linear combination of the used position vectors in the base of the Bravais lattice.
Expand Down

0 comments on commit 02b1aaf

Please sign in to comment.