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

Update psi4_waveform_generator.py add a couple commetns

parent 9b7ac291
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,10 @@ class Psi4_WaveformGenerator(WaveformGenerator):
phase = 2 * np.pi * self.frequency_array / self.sampling_frequency
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