fixed broken from_arrays method in spectra