Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Sep 25, 2024
1 parent 312cacc commit 965f3ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/bands/bands_workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def generate_kpath_2d(structure, kpoints_distance, kpath_2d):

# Calculate the number of points per branch and generate the kpoints
index_offset = 0 # Start index for each segment
for (start, end), label_start, label_end in zip(branches, labels[:-1], labels[1:]):
for (start, end), label_start, _ in zip(branches, labels[:-1], labels[1:]):
num_points_per_branch = points_per_branch(
start, end, reciprocal_cell, bands_kpoints_distance
)
Expand Down
12 changes: 5 additions & 7 deletions src/aiidalab_qe/plugins/bands/workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ def check_codes(pw_code, projwfc_code):
]
)
and len(
set(
(
pw_code.computer.pk,
projwfc_code.computer.pk,
)
)
{
pw_code.computer.pk,
projwfc_code.computer.pk,
}
)
!= 1
):
Expand Down Expand Up @@ -173,7 +171,7 @@ def generate_kpath_2d(structure, kpoints_distance, kpath_2d):

# Calculate the number of points per branch and generate the kpoints
index_offset = 0 # Start index for each segment
for (start, end), label_start, _label_end in zip(branches, labels[:-1], labels[1:]):
for (start, end), label_start, _ in zip(branches, labels[:-1], labels[1:]):
num_points_per_branch = points_per_branch(
start, end, reciprocal_cell, bands_kpoints_distance
)
Expand Down

0 comments on commit 965f3ad

Please sign in to comment.