Coverage for python/lsst/sims/maf/metrics/fftMetric.py : 50%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Calculate a truncated FFT of the exposure times.""" nCoeffs=100, **kwargs): """Instantiate metric.
'timesCol' = column with the time of the visit (default expmjd), 'nCoeffs' = number of coefficients of the (real) FFT to keep.""" self.times = timesCol super(FftMetric, self).__init__(col=[self.times], metricName=metricName, **kwargs) # Set up length of return values. self.nCoeffs = nCoeffs return
fft = fftpack.rfft(dataSlice[self.times]) return fft[0:self.nCoeffs]
pass |