Skip to content
Snippets Groups Projects
Commit 2748083c authored by Sander Snoo's avatar Sander Snoo
Browse files

Fix Keysight mock for numpy >= 2.0

parent 4c732064
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ class MockM3202A(Instrument):
size = len(wave)
# discretize samples
data = (wave*2**15).astype(np.int16)
data &= 0xFFF8 # 13 bit resolution
data &= np.uint16(0xFFF8) # 13 bit resolution
data = data.astype(float)
data /= 2**15
slot = self.memory_manager.allocate(size)
......
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