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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raphael Sturgis
skais
Commits
6cb9469e
Commit
6cb9469e
authored
3 years ago
by
Raphael Sturgis
Browse files
Options
Downloads
Patches
Plain Diff
hotfix
parent
130241bf
Branches
Branches containing commit
No related tags found
1 merge request
!13
Draft: Develop
This commit is part of merge request
!13
. Comments created here will be created in the context of that merge request.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
skais/ais/ais_trajectory.py
+1
-1
1 addition, 1 deletion
skais/ais/ais_trajectory.py
with
1 addition
and
1 deletion
skais/ais/ais_trajectory.py
+
1
−
1
Edit
View file @
6cb9469e
...
@@ -88,7 +88,7 @@ def __get_bounding_box__(bounding_box, positions, ref_index):
...
@@ -88,7 +88,7 @@ def __get_bounding_box__(bounding_box, positions, ref_index):
upper_lon
=
center_lon
+
distance_to_center
upper_lon
=
center_lon
+
distance_to_center
lower_lon
=
center_lon
-
distance_to_center
lower_lon
=
center_lon
-
distance_to_center
elif
type
(
bounding_box
)
is
list
:
elif
type
(
bounding_box
)
is
list
:
if
isinstance
(
bounding_box
[
0
],
numbers
.
Number
):
if
not
isinstance
(
bounding_box
[
0
],
numbers
.
Number
):
upper_lon
=
bounding_box
[
1
][
0
]
upper_lon
=
bounding_box
[
1
][
0
]
lower_lon
=
bounding_box
[
0
][
0
]
lower_lon
=
bounding_box
[
0
][
0
]
upper_lat
=
bounding_box
[
1
][
1
]
upper_lat
=
bounding_box
[
1
][
1
]
...
...
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