change: misc

This commit is contained in:
Benoît Sierro
2023-08-29 09:02:48 +02:00
parent 9b331c1b88
commit 02d5b1d4ac
2 changed files with 3 additions and 3 deletions

View File

@@ -167,13 +167,13 @@ def all_zeros(x: np.ndarray, y: np.ndarray) -> np.ndarray:
return -y[pos] / m + x[pos]
def wspace(t, t_num=0):
def wspace(t: float | np.ndarray, t_num=0):
"""
frequency array such that x(t) <-> np.fft(x)(w)
Parameters
----------
t : float or array
t : float | np.ndarray
float : total width of the time window
array : time array
t_num : int-

View File

@@ -83,7 +83,7 @@ class NoiseMeasurement:
@property
def psd_dBc(self) -> np.ndarray:
return math.to_dB(self.psd)
return math.to_dB(self.psd, ref=1.0)
@property
def plottable_linear(self) -> tuple[np.ndarray, np.ndarray]: