Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
Olivier Bertrand
navipy
Commits
1fc70453
Commit
1fc70453
authored
7 years ago
by
Olivier Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
PEP8
parent
2acd50de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
navipy/database/__init__.py
+1
-1
1 addition, 1 deletion
navipy/database/__init__.py
navipy/sensors/renderer.py
+4
-5
4 additions, 5 deletions
navipy/sensors/renderer.py
with
5 additions
and
6 deletions
navipy/database/__init__.py
+
1
−
1
View file @
1fc70453
...
@@ -568,5 +568,5 @@ class DataBaseSave(DataBase):
...
@@ -568,5 +568,5 @@ class DataBaseSave(DataBase):
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_max
'
]
=
cmax
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_max
'
]
=
cmax
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_min
'
]
=
cmin
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_min
'
]
=
cmin
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_range
'
]
=
crange
cmaxminrange
.
loc
[
str
(
chan_n
)
+
'
_range
'
]
=
crange
check_scene
(
normed_im
[...,
np
.
newaxis
])
check_scene
(
normed_im
[...,
np
.
newaxis
])
return
normed_im
,
cmaxminrange
return
normed_im
,
cmaxminrange
This diff is collapsed.
Click to expand it.
navipy/sensors/renderer.py
+
4
−
5
View file @
1fc70453
...
@@ -324,15 +324,14 @@ is the distance.
...
@@ -324,15 +324,14 @@ is the distance.
self
.
update
(
posorient
)
self
.
update
(
posorient
)
toreturn
=
np
.
concatenate
((
self
.
image
,
toreturn
=
np
.
concatenate
((
self
.
image
,
self
.
distance
),
axis
=
2
)
self
.
distance
),
axis
=
2
)
ninffound
=
0
ninffound
=
0
for
chan_i
in
range
(
4
):
for
chan_i
in
range
(
4
):
cim
=
toreturn
[...,
chan_i
]
cim
=
toreturn
[...,
chan_i
]
cmax
=
cim
.
max
()
cmax
=
cim
.
max
()
if
np
.
isinf
(
cmax
):
if
np
.
isinf
(
cmax
):
ninffound
+=
np
.
sum
(
np
.
isinf
(
cim
))
ninffound
+=
np
.
sum
(
np
.
isinf
(
cim
))
cmax
=
cim
[
np
.
isinf
(
cim
)
==
0
].
max
()
cmax
=
cim
[
np
.
isinf
(
cim
)
==
0
].
max
()
toreturn
[
np
.
isinf
(
cim
)
==
1
]
=
cmax
toreturn
[
np
.
isinf
(
cim
)
==
1
]
=
cmax
if
ninffound
>
0
:
if
ninffound
>
0
:
warnings
.
warn
(
'
{} Inf found in image
'
.
format
(
ninffound
))
warnings
.
warn
(
'
{} Inf found in image
'
.
format
(
ninffound
))
return
toreturn
[...,
np
.
newaxis
]
return
toreturn
[...,
np
.
newaxis
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment