Skip to content

Commit

Permalink
replace + concatenator with unpacking operator for efficiency (RUF005)
Browse files Browse the repository at this point in the history
  • Loading branch information
ireaml committed Jan 14, 2025
1 parent e8c4239 commit 191bd12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions shakenbreak/distortions.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ def apply_dimer_distortion(
Fractional coordinates of the defect site in the structure (for
vacancies).
Defaults to None.
verbose (Optional[bool], optional):
Print information about the dimer distortion.
Defaults to False.
Returns:
obj:`Structure`:
Expand Down
2 changes: 1 addition & 1 deletion shakenbreak/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ def _update_distortion_metadata(
if defect_type == "vacancy":
distortion_metadata["defects"][defect_name]["charges"][int(charge)][
"distortion_parameters"
]["bond_distortions"] = self.bond_distortions + ["Dimer"]
]["bond_distortions"] = [*self.bond_distortions, "Dimer"]
return distortion_metadata

def _generate_structure_comment(
Expand Down

0 comments on commit 191bd12

Please sign in to comment.