Skip to content

Commit 365f040

Browse files
committed
Try to fix atomate tests due to bad use of numpy.A1.
1 parent 3d9d4ce commit 365f040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atomate/vasp/firetasks/parse_outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def run_task(self, fw_spec):
828828

829829
polarization = Polarization(p_elecs, p_ions, structures)
830830

831-
p_change = polarization.get_polarization_change().A1.tolist()
831+
p_change = np.ravel(polarization.get_polarization_change()).tolist()
832832
p_norm = polarization.get_polarization_change_norm()
833833
polarization_max_spline_jumps = polarization.max_spline_jumps()
834834
same_branch = polarization.get_same_branch_polarization_data(convert_to_muC_per_cm2=True)

0 commit comments

Comments
 (0)