Skip to content

Commit 693d798

Browse files
committed
codeql
1 parent ea1284d commit 693d798

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/mixed/default.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""smokescreen checks of mixed domain default hamiltonian integration"""
22
import WrightSim as ws
3-
import WrightTools as wt
43
import numpy as np
5-
import matplotlib.pyplot as plt
64
import pytest
75

86

@@ -56,25 +54,6 @@ def test_windowed():
5654
scan2 = exp2.run(ham, mp=False, windowed=True)
5755
data2 = scan2.sig
5856

59-
if True:
60-
fig, (ax1, ax2) = plt.subplots(nrows=2)
61-
ax1.plot(data.time[:], data.channels[0][:].real)
62-
63-
wn = np.fft.fftfreq(n=data.time.size, d=exp.timestep) / 3e-5
64-
sig_fft = np.abs(np.fft.fft(data.channels[0][:]))
65-
ax2.plot(wn, sig_fft)
66-
67-
ax1.plot(data2.time[:], data2.channels[0][:].real)
68-
# ax1.plot(data2.time[:], data2.channels[0][:].imag)
69-
70-
wn2 = np.fft.fftfreq(n=data.time.size, d=exp.timestep) / 3e-5
71-
sig_fft2 = np.abs(np.fft.fft(data.channels[0][:]))
72-
ax2.plot(wn2, sig_fft2)
73-
74-
ax2.set_xlim(-4000, -2000)
75-
76-
plt.show()
77-
7857
assert data2.time.size == data.time.size
7958
assert data2.time.size == data2.channels[0].size
8059
assert np.all(np.isclose(data2.channels[0][:], data.channels[0][:]))
@@ -101,11 +80,6 @@ def test_frequency():
10180
wn = np.fft.fftfreq(n=data.time.size, d=exp.timestep) / 3e-5
10281
sig_fft = np.abs(np.fft.fft(data.channels[0][:]))
10382

104-
if False:
105-
fig, (ax1, ax2) = plt.subplots(nrows=2)
106-
ax2.plot(wn, sig_fft)
107-
plt.show()
108-
10983
assert np.abs(wn[np.argmax(sig_fft)] + w_central) < np.abs(wn[1] - wn[0])
11084

11185

0 commit comments

Comments
 (0)