Skip to content

Commit d1e2321

Browse files
Pipe-RunnerCloudyPadmal
authored andcommitted
[fossasia#105] byte type cast (fossasia#106)
* convert byte to int for python3+ * byte type cast
1 parent 29db0e1 commit d1e2321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSL/sciencelab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ def fetch_int_data_from_LA(self, bytes, chan=1):
23892389
self.H.__sendByte__(chan - 1)
23902390

23912391
ss = self.H.fd.read(int(bytes * 2))
2392-
t = np.zeros(bytes * 2)
2392+
t = np.zeros(int(bytes) * 2)
23932393
for a in range(int(bytes)):
23942394
t[a] = CP.ShortInt.unpack(ss[a * 2:a * 2 + 2])[0]
23952395

0 commit comments

Comments
 (0)
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