From 820902a8a73b19f0704d9486d5935d9ca36ced7b Mon Sep 17 00:00:00 2001 From: AakashMallik Date: Tue, 9 Jul 2019 22:30:54 +0530 Subject: [PATCH] convert byte to int for python3+ --- PSL/sciencelab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSL/sciencelab.py b/PSL/sciencelab.py index baaf238e..52dfc69c 100644 --- a/PSL/sciencelab.py +++ b/PSL/sciencelab.py @@ -2432,7 +2432,7 @@ def fetch_long_data_from_LA(self, bytes, chan=1): self.H.__sendByte__(chan - 1) ss = self.H.fd.read(int(bytes * 4)) self.H.__get_ack__() - tmp = np.zeros(bytes) + tmp = np.zeros((bytes)) for a in range(int(bytes)): tmp[a] = CP.Integer.unpack(ss[a * 4:a * 4 + 4])[0] tmp = np.trim_zeros(tmp) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy