We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3983c9c commit 3843b46Copy full SHA for 3843b46
1 file changed
src/graphomotor/core/models.py
@@ -88,11 +88,14 @@ def validate_timestamps(cls, v: pd.DataFrame) -> pd.DataFrame:
88
Raises:
89
ValueError: If the dataframe contains duplicate timestamps.
90
"""
91
- if v["seconds"].duplicated().any():
92
- raise ValueError("duplicate timestamps in 'seconds'.")
93
-
94
- if v["UTC_Timestamp"].duplicated().any():
95
- raise ValueError("duplicate timestamps in 'UTC_Timestamp'.")
+ if cls.task_name != "trails":
+ return v
+ else:
+ if v["seconds"].duplicated().any():
+ raise ValueError("duplicate timestamps in 'seconds'.")
96
+
97
+ if v["UTC_Timestamp"].duplicated().any():
98
+ raise ValueError("duplicate timestamps in 'UTC_Timestamp'.")
99
100
return v
101
0 commit comments