Skip to content
Snippets Groups Projects
Commit d117922b authored by Samson Leong's avatar Samson Leong :stuck_out_tongue:
Browse files

Fix syntax error with comments

parent 6d34d78c
No related branches found
No related tags found
No related merge requests found
......@@ -63,16 +63,19 @@ class Psi4_WaveformGenerator(WaveformGenerator):
self.is_psi4_model = False
# Correction factor between derivative and differencing
# Details please refers to the article: arxiv:2205.15029
# The argument in the correction factor: 2π kΔf Δt
phase = 2 * np.pi * self.frequency_array / self.sampling_frequency
## This correction_factor depends whether the data is strain or psi4,
## the first is for psi4, (A5) in the article; and
## the second is for strain, see (A4).
self.correction_factor = \
# (A5) in the draft
(1 - np.cos(phase)) / (0.5 * phase * phase) \
if self.is_psi4_model else \
# (A4) in the draft
2 * self.sampling_frequency * self.sampling_frequency * (np.cos(phase) - 1)
self._cache = dict(parameters=None, FD_waveform=None, TD_waveform=None)
......
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