Fix saving lists of arrays with recent versions of numpy
This commit is contained in:
parent
5e4f9130fb
commit
f9620e1d11
|
@ -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__()},
|
np.savez(outfile, meta={**vars(a), 'qpms_version' : qpms.__version__()},
|
||||||
omega=omega, wavenumber=wavenumber, nelem=nelem, wavevector=np.array(a.wavevector), phases=phases,
|
omega=omega, wavenumber=wavenumber, nelem=nelem, wavevector=np.array(a.wavevector), phases=phases,
|
||||||
positions = ss.positions[:,:2],
|
positions = ss.positions[:,:2],
|
||||||
scattered_ir_packed = scattered_ir,
|
scattered_ir_packed = np.array(scattered_ir, dtype=np.object),
|
||||||
scattered_full = scattered_full,
|
scattered_full = scattered_full,
|
||||||
ir_contained = ir_contained,
|
ir_contained = ir_contained,
|
||||||
t=t, l=l, m=m,
|
t=t, l=l, m=m,
|
||||||
|
|
Loading…
Reference in New Issue