Skip to content
Snippets Groups Projects
Commit 05ab5785 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Updates the method used to create frequency array

Ensures the resulting array is always odd as expected.
parent 01aab2d2
No related branches found
No related tags found
1 merge request!8Updates the method used to create frequency array
Pipeline #
......@@ -19,9 +19,8 @@ class Source:
self.time_duration = time_duration
self.time_array = peyote.utils.create_time_series(
sampling_frequency, time_duration)
self.nsamples = len(self.time_array)
self.frequency_array = np.fft.rfftfreq(
self.nsamples, 1/self.sampling_frequency)
self.frequency_array = peyote.utils.create_fequency_series(
sampling_frequency, time_duration)
class SimpleSinusoidSource(Source):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment