Skip to content

Commit 1442917

Browse files
authored
only set ms default if gaze data provided
1 parent e734b3c commit 1442917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pymovements/gaze/gaze_dataframe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def __init__(
226226
time_unit = 'step'
227227

228228
# If no time_unit specified, assume milliseconds.
229-
if time_unit is None:
229+
if self.frame is not None and time_unit is None:
230230
time_unit = 'ms'
231231

232232
if time_column is not None:

0 commit comments

Comments
 (0)