Skip to content
Snippets Groups Projects
Commit 3e2895a4 authored by Raphael's avatar Raphael
Browse files

minor

parent 59e772af
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ def apply_time_sequence(dat, time, func): ...@@ -51,7 +51,7 @@ def apply_time_sequence(dat, time, func):
class AISTrajectory(AISPoints): class AISTrajectory(AISPoints):
def __init__(self, df, interpolation_time=None): def __init__(self, df, interpolation_time=None):
df = df.drop_duplicates(subset=['ts_sec']) df = df.drop_duplicates(subset=['ts_sec'])
df = df.sort_values(by=['ts_sec'])
if interpolation_time and len(df.index) > 4: if interpolation_time and len(df.index) > 4:
float_columns = ['longitude', 'latitude', 'cog', 'heading', 'rot', 'sog', 'diff'] float_columns = ['longitude', 'latitude', 'cog', 'heading', 'rot', 'sog', 'diff']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment