Skip to content

Commit

Permalink
Merge pull request #1200 from pyiron/fix_numpy_error
Browse files Browse the repository at this point in the history
Spare a poor phd student from the horrible numpy ragged array problem
  • Loading branch information
ahmedabdelkawy authored Nov 10, 2023
2 parents 6aeac0f + 8abad44 commit 3b8f340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_atomistics/vasp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,8 +2019,8 @@ 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"]).copy()
final_magmoms = np.array(self.outcar.parse_dict["final_magmoms"]).copy()
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 3b8f340

Please sign in to comment.