Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Jun 26, 2024
1 parent 6b08175 commit 31fb6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion custodian/qchem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def perturb_coordinates(old_coords, negative_freq_vecs, molecule_perturb_scale,
direction = 1.0
if reversed_direction:
direction = -1.0
return [[c + v * direction for c, v in zip(coord, vec)] for coord, vec in zip(old_coords, normalized_vecs)]
return [
[c + v * direction for c, v in zip(coord, vec, strict=False)]
for coord, vec in zip(old_coords, normalized_vecs, strict=False)
]


def vector_list_diff(vecs1, vecs2):
Expand Down
2 changes: 1 addition & 1 deletion custodian/vasp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def increase_k_point_density(
The new Kpoints object / KSPACING consistent with constraints.
If an empty dict, no new k-point mesh could be found.
"""
uses_kspacing = isinstance(kpoints, (float, int))
uses_kspacing = isinstance(kpoints, float | int)

if uses_kspacing:
orig_num_kpoints = np.prod(_estimate_num_k_points_from_kspacing(structure, kpoints)) # type: ignore[arg-type]
Expand Down

0 comments on commit 31fb6f6

Please sign in to comment.