fft shift spectrogram
This commit is contained in:
@@ -162,7 +162,9 @@ class Spectrum(np.ndarray):
|
||||
return pulse.g12(self, axis)[..., self.wl_order]
|
||||
|
||||
def spectrogram(self, delays: Iterable[float], gate_width: float = 2e-13) -> np.ndarray:
|
||||
return pulse.spectrogram(self.t, delays, self.time_amp, gate_width)
|
||||
return np.fft.fftshift(
|
||||
pulse.spectrogram(self.t, delays, self.time_amp, gate_width), axes=-1
|
||||
)
|
||||
|
||||
freq_int = afreq_int
|
||||
freq_amp = afreq_amp
|
||||
|
||||
Reference in New Issue
Block a user