Skip to content
Snippets Groups Projects
Commit 17c3bb7b authored by Colm Talbot's avatar Colm Talbot
Browse files

Merge branch 'fix-frequency-array-creation' into 'master'

Updates the method used to create frequency array

See merge request Monash/peyote!8
parents 0a8e2e95 05ab5785
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