Skip to content

Commit

Permalink
fix(SmurfDataReceiver): Convert from numpy bytes array.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Aug 28, 2024
1 parent 3db9990 commit 9c3643e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pysmurf/core/utilities/_SmurfDataReceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _process16(self,frame):
datRaw = frame.getNumpy(0,fl) # uint8

# Convert to 16-bit signed numpy
dat = np.array(datRaw, np.int16)
dat = datRaw.view(np.int16)

# Update data
self.Data.set(dat,write=True)
Expand All @@ -60,7 +60,7 @@ def _process8(self,frame):
datRaw = frame.getNumpy(0,fl) # uint8

# Convert to 8-bit signed numpy
dat = np.array(datRaw, np.int8)
dat = datRaw.view(np.int8)

# Update data
self.Data.set(dat,write=True)
Expand Down

0 comments on commit 9c3643e

Please sign in to comment.