Skip to content

Commit

Permalink
deprecate: Fix NumPy deprecation warnings
Browse files Browse the repository at this point in the history
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 <demel@ant.uni-bremen.de>
  • Loading branch information
jdemel committed Dec 20, 2022
1 parent a94ea62 commit 5315a05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/qa_sc_delay_corr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def tearDown(self):
def test_001_t(self):
# generate a random Schmidl&Cox preamble
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
s = np.zeros(64, dtype=np.complex)
s = np.zeros(64, dtype=complex)
s[::2] = d
sync_seq = np.fft.ifft(s)

Expand Down
2 changes: 1 addition & 1 deletion python/qa_sc_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def tearDown(self):
def test_001_t(self):
# generate a random Schmidl&Cox preamble
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
s = np.zeros(64, dtype=np.complex)
s = np.zeros(64, dtype=complex)
s[::2] = d
sync_seq = np.fft.ifft(s)

Expand Down
2 changes: 1 addition & 1 deletion python/qa_xcorr_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def tearDown(self):
def test_001_t(self):
# generate a random Schmidl&Cox preamble
d = np.random.normal(0.0, 1, 32) + 1j * np.random.normal(0.0, 1, 32)
s = np.zeros(64, dtype=np.complex)
s = np.zeros(64, dtype=complex)
s[::2] = d
sync_seq = np.fft.ifft(s).astype(np.complex64)
sync_seq /= np.sqrt(np.mean(sync_seq ** 2))
Expand Down

0 comments on commit 5315a05

Please sign in to comment.