Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Nov 15, 2023
1 parent 0bd9514 commit 3625bf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyiron_atomistics/vasp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,8 +2019,12 @@ def collect(self, directory=os.getcwd(), sorted_indices=None):
"n_elect"
]
if len(self.outcar.parse_dict["magnetization"]) > 0:
magnetization = np.array(self.outcar.parse_dict["magnetization"], dtype=object)
final_magmoms = np.array(self.outcar.parse_dict["final_magmoms"], dtype=object)
magnetization = np.array(
self.outcar.parse_dict["magnetization"], dtype=object
)
final_magmoms = np.array(
self.outcar.parse_dict["final_magmoms"], dtype=object
)
# magnetization[sorted_indices] = magnetization.copy()
if len(final_magmoms) != 0:
if len(final_magmoms.shape) == 3:
Expand Down

0 comments on commit 3625bf3

Please sign in to comment.