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
!8
Resolve "Get time windows for labels"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Get time windows for labels"
20-get-time-windows-for-labels
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
2
Merged
Raphael Sturgis
requested to merge
20-get-time-windows-for-labels
into
develop
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
2
Expand
Closes
#20 (closed)
0
0
Merge request reports
Viewing commit
9d067463
Prev
Next
Show latest version
2 files
+
10
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
9d067463
implemented feature
· 9d067463
Raphael Sturgis
authored
3 years ago
skais/ais/ais_trajectory.py
+
8
−
2
Options
@@ -215,5 +215,11 @@ class AISTrajectory(AISPoints):
else
:
return
AISTrajectory
(
new_df
,
mmsi
=
self
.
mmsi
)
def
get_time_per_label_shift
(
self
):
pass
\ No newline at end of file
def
get_time_per_label_shift
(
self
,
label_column
=
'
label
'
):
current_label
=
-
1
result
=
[]
for
index
,
row
in
self
.
df
.
iterrows
():
if
current_label
!=
row
[
label_column
]:
current_label
=
row
[
label_column
]
result
.
append
((
row
[
'
ts_sec
'
],
current_label
))
return
result
\ No newline at end of file
Loading