Skip to content

Commit

Permalink
Fix error when selecting large portions of Signal (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl authored Jan 26, 2023
1 parent 1c9f936 commit 8673a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urh/signalprocessing/IQArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def to_bytes(self):
return self.__data.tostring()

def subarray(self, start=None, stop=None, step=None):
return IQArray(self[start:stop:step])
return IQArray(np.ascontiguousarray(self[start:stop:step]))

def insert_subarray(self, pos, subarray: np.ndarray):
if subarray.ndim == 1:
Expand Down

0 comments on commit 8673a1e

Please sign in to comment.