Skip to content

Commit dd1f8d9

Browse files
Pipe-RunnerCloudyPadmal
authored andcommitted
convert byte to int for python3+ (fossasia#103)
1 parent 2744a67 commit dd1f8d9

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
@@ -2427,7 +2427,7 @@ def fetch_long_data_from_LA(self, bytes, chan=1):
24272427
self.H.__sendByte__(chan - 1)
24282428
ss = self.H.fd.read(int(bytes * 4))
24292429
self.H.__get_ack__()
2430-
tmp = np.zeros(bytes)
2430+
tmp = np.zeros((bytes))
24312431
for a in range(int(bytes)):
24322432
tmp[a] = CP.Integer.unpack(ss[a * 4:a * 4 + 4])[0]
24332433
tmp = np.trim_zeros(tmp)

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