Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python3 ArmarX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
Python3 ArmarX
Merge requests
!96
fix by TB: microphone_to_memory does not work otherwise
代码
评审变更
检出分支
下载
补丁
文本差异
Merged
fix by TB: microphone_to_memory does not work otherwise
fix/assert-error
into
master
Overview
6
Commits
4
Pipelines
3
Changes
1
1 unresolved thread
Hide all comments
Merged
Fabian Reister
requested to merge
fix/assert-error
into
master
2 months ago
Overview
6
Commits
4
Pipelines
3
Changes
1
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Compare
master
version 2
61ea4bc9
2 months ago
version 1
04cab3cf
2 months ago
master (base)
and
latest version
latest version
5502fc02
4 commits,
2 months ago
version 2
61ea4bc9
2 commits,
2 months ago
version 1
04cab3cf
1 commit,
2 months ago
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
armarx_memory/aron/conversion/pythonic_from_to_aron_ice.py
+
4
−
2
Options
@@ -28,10 +28,12 @@ def pythonic_to_aron_ice(
return
AronDataIceTypes
.
bool
(
value
)
elif
isinstance
(
value
,
np
.
int64
):
return
AronDataIceTypes
.
long
(
int
(
value
))
elif
isinstance
(
value
,
int
)
or
isinstance
(
value
,
np
.
int32
):
elif
isinstance
(
value
,
np
.
int32
):
return
AronIceTypes
.
int
(
int
(
value
))
elif
isinstance
(
value
,
int
):
# because python is treating int and long the same, we need to differentiate between the two
assert
(
isinstance
(
value
,
int
)),
value
if
'
invalid value - expected int
'
in
str
(
AronIceTypes
.
int
(
int
(
value
))):
# try to convert it to AronInt -> if it fails this is a long
assert
'
invalid value - expected int
'
not
in
str
(
AronIceTypes
.
long
(
int
(
value
))),
\
f
'
Casting
{
value
}
to long failed. Did you intend to use np.int64 instead,
'
\
'
but assigned a plain int value, or converted the value somewhere in the meantime?
'
Loading