Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
skais
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raphael Sturgis
skais
Merge requests
!21
fix depreciation warning
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix depreciation warning
26-fix-numba-depreciation-warning
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Raphael Sturgis
requested to merge
26-fix-numba-depreciation-warning
into
develop
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#26 (closed)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
2e2c982a
1 commit,
3 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
skais/ais/ais_trajectory.py
+
3
−
3
Options
@@ -358,11 +358,11 @@ class AISTrajectory(AISPoints):
elif
type
(
features
)
is
list
:
features_vectors
=
self
.
df
[
features
].
to_numpy
()
for
c
in
features_vectors
.
T
:
bounds
.
append
(
(
0
,
max
(
c
)
)
)
bounds
.
append
(
[
0
,
max
(
c
)
]
)
elif
type
(
features
)
is
str
:
features_vectors
=
self
.
df
[[
features
]].
to_numpy
()
for
c
in
features_vectors
.
T
:
bounds
.
append
(
(
0
,
max
(
c
)
)
)
bounds
.
append
(
[
0
,
max
(
c
)
]
)
elif
type
(
features
)
is
dict
:
bounds
=
list
(
features
.
values
())
features_vectors
=
self
.
df
[
features
.
keys
()].
to_numpy
()
@@ -383,6 +383,6 @@ class AISTrajectory(AISPoints):
generate_links
(
data
,
positions
,
height
,
width
,
lower_lat
,
upper_lat
,
lower_lon
,
upper_lon
)
else
:
generate_points_with_features
(
data
,
positions
,
features_vectors
,
bounds
,
node_size
,
height
,
width
,
generate_points_with_features
(
data
,
positions
,
features_vectors
,
np
.
array
(
bounds
)
,
node_size
,
height
,
width
,
lower_lat
,
upper_lat
,
lower_lon
,
upper_lon
,
link
)
return
data
Loading