spectrogram.from_timeseries: fix unit bug