Skip to content

Commit 7a67842

Browse files
committed
Remove deprecated np.asfarray function.
1 parent 9fde1c0 commit 7a67842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript_devices/AlazarTechBoard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def program_manual(self, values):
558558

559559
def to_volts(self, zeroToFullScale, buf):
560560
offset = float(2**(self.bitsPerSample-1))
561-
return (np.asfarray(buf, np.float32)-offset)/offset * zeroToFullScale * 0.001
561+
return (np.asarray(buf, np.float32)-offset)/offset * zeroToFullScale * 0.001
562562

563563
# This helper function waits for the acquisition_loop thread to finish the acquisition,
564564
# either successfully or after an exception.

0 commit comments

Comments
 (0)