From f9620e1d113b5c325f73a878a5ed31bda3bd42ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Mon, 20 Jun 2022 08:49:37 +0300 Subject: [PATCH] Fix saving lists of arrays with recent versions of numpy --- misc/finiterectlat-constant-driving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/finiterectlat-constant-driving.py b/misc/finiterectlat-constant-driving.py index 4bf2cb9..bf742bc 100755 --- a/misc/finiterectlat-constant-driving.py +++ b/misc/finiterectlat-constant-driving.py @@ -254,7 +254,7 @@ outfile = defaultprefix + ".npz" if a.output is None else a.output np.savez(outfile, meta={**vars(a), 'qpms_version' : qpms.__version__()}, omega=omega, wavenumber=wavenumber, nelem=nelem, wavevector=np.array(a.wavevector), phases=phases, positions = ss.positions[:,:2], - scattered_ir_packed = scattered_ir, + scattered_ir_packed = np.array(scattered_ir, dtype=np.object), scattered_full = scattered_full, ir_contained = ir_contained, t=t, l=l, m=m,