mirror of
https://github.com/nqrduck/quackseq.git
synced 2024-11-09 13:10:00 +00:00
Fixed bug with multiple datasets.
This commit is contained in:
parent
7e84efc02e
commit
0b7c6085f0
1 changed files with 5 additions and 3 deletions
|
@ -56,8 +56,8 @@ class Measurement:
|
||||||
self.fdy = [fdy]
|
self.fdy = [fdy]
|
||||||
self.fits = []
|
self.fits = []
|
||||||
|
|
||||||
def add_data(self, tdx: np.array, tdy: np.array) -> None:
|
def add_dataset(self, tdx: np.array, tdy: np.array) -> None:
|
||||||
"""Adds data to the measurement.
|
"""Adds dataset to the measurement.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
tdx (np.array): Time axis for the x axis of the measurement data.
|
tdx (np.array): Time axis for the x axis of the measurement data.
|
||||||
|
@ -65,7 +65,9 @@ class Measurement:
|
||||||
"""
|
"""
|
||||||
self.tdx.append(tdx)
|
self.tdx.append(tdx)
|
||||||
self.tdy.append(tdy)
|
self.tdy.append(tdy)
|
||||||
self.fdx, self.fdy = sp.fft(tdx, tdy, self.frequency_shift)
|
fdx, fdy = sp.fft(tdx, tdy, self.frequency_shift)
|
||||||
|
self.fdx.append(fdx)
|
||||||
|
self.fdy.append(fdy)
|
||||||
|
|
||||||
def apodization(self, function: Function) -> "Measurement":
|
def apodization(self, function: Function) -> "Measurement":
|
||||||
"""Applies apodization to the measurement data.
|
"""Applies apodization to the measurement data.
|
||||||
|
|
Loading…
Reference in a new issue