diff --git a/src/scgenerator/noise.py b/src/scgenerator/noise.py index 253e26c..76875d3 100644 --- a/src/scgenerator/noise.py +++ b/src/scgenerator/noise.py @@ -118,6 +118,10 @@ class NoiseMeasurement: def psd_dBc(self) -> np.ndarray: return np.log10(self.psd) * 10 + @property + def plottable_dBc(self) -> tuple[np.ndarray, np.ndarray]: + return self.freq[1:], self.psd_dBc[1:] + def sample_spectrum(self, nt: int, dt: float | None = None) -> tuple[np.ndarray, np.ndarray]: """ sample an amplitude spectrum with nt points. The corresponding sample spacing in the time