From 967752cd90e3d785a618c38ead413db9e5f054a5 Mon Sep 17 00:00:00 2001 From: samwaseda Date: Wed, 8 Nov 2023 11:14:06 +0000 Subject: [PATCH] c2RR0 --- pyiron_atomistics/vasp/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyiron_atomistics/vasp/base.py b/pyiron_atomistics/vasp/base.py index 7a0bd304e..8c6bb17ad 100644 --- a/pyiron_atomistics/vasp/base.py +++ b/pyiron_atomistics/vasp/base.py @@ -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).copy() + final_magmoms = np.array(self.outcar.parse_dict["final_magmoms"], dtype=object).copy() # magnetization[sorted_indices] = magnetization.copy() if len(final_magmoms) != 0: if len(final_magmoms.shape) == 3: