Skip to content

Commit 5315a05

Browse files
committed
deprecate: Fix NumPy deprecation warnings
NumPy puts out deprecation warnings in situations where aliases to built-in types are used. Thus, we switch to built-in types. Signed-off-by: Johannes Demel <[email protected]>
1 parent a94ea62 commit 5315a05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/qa_sc_delay_corr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def tearDown(self):
2323
def test_001_t(self):
2424
# generate a random Schmidl&Cox preamble
2525
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
26-
s = np.zeros(64, dtype=np.complex)
26+
s = np.zeros(64, dtype=complex)
2727
s[::2] = d
2828
sync_seq = np.fft.ifft(s)
2929

python/qa_sc_tagger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def tearDown(self):
2424
def test_001_t(self):
2525
# generate a random Schmidl&Cox preamble
2626
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
27-
s = np.zeros(64, dtype=np.complex)
27+
s = np.zeros(64, dtype=complex)
2828
s[::2] = d
2929
sync_seq = np.fft.ifft(s)
3030

python/qa_xcorr_tagger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def tearDown(self):
2828
def test_001_t(self):
2929
# generate a random Schmidl&Cox preamble
3030
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
31-
s = np.zeros(64, dtype=np.complex)
31+
s = np.zeros(64, dtype=complex)
3232
s[::2] = d
3333
sync_seq = np.fft.ifft(s).astype(np.complex64)
3434
sync_seq /= np.sqrt(np.mean(sync_seq ** 2))

0 commit comments

Comments
 (0)