Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xlte
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
xlte
Commits
b00073fe
Commit
b00073fe
authored
Mar 27, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2: kpi: Fix tobytes on np.void
On py2 np.void.data is buffer which does not have .tobytes() .
parent
4899f187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kpi.py
kpi.py
+2
-2
No files found.
kpi.py
View file @
b00073fe
...
...
@@ -352,8 +352,8 @@ def __eq__(a, b):
return
False
# cast to dtype without aliases to avoid
# "dtypes with overlapping or out-of-order fields are not representable as buffers"
return
a
.
view
(
a
.
_dtype0
).
data
.
tobytes
(
)
==
\
b
.
view
(
b
.
_dtype0
).
data
.
tobytes
(
)
return
bytes
(
a
.
view
(
a
.
_dtype0
).
data
)
==
\
b
ytes
(
b
.
view
(
b
.
_dtype0
).
data
)
@
func
(
Measurement
)
def
__ne__
(
a
,
b
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment