You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the dataset does download and extract but then unfortunately errors:
polars.exceptions.ComputeError: could not parse `# Message: UE-keypress N` as dtype `f64` at column 'column_4' (column number 4)
more details here:
```console
Traceback (most recent call last):
File "/home/siqube/lab/aeye-lab/pymovements/tt.py", line 11, in
dataset.load()
File "/home/siqube/lab/aeye-lab/pymovements/src/pymovements/dataset/dataset.py", line 131, in load
self.load_gaze_files(
File "/home/siqube/lab/aeye-lab/pymovements/src/pymovements/dataset/dataset.py", line 207, in load_gaze_files
self.gaze = dataset_files.load_gaze_files(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/src/pymovements/dataset/dataset_files.py", line 257, in load_gaze_files
gaze_df = load_gaze_file(
^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/src/pymovements/dataset/dataset_files.py", line 374, in load_gaze_file
gaze_df = from_csv(
^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/src/pymovements/gaze/io.py", line 218, in from_csv
gaze_data = pl.read_csv(file, **read_csv_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/venv/lib/python3.12/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/venv/lib/python3.12/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/venv/lib/python3.12/site-packages/polars/_utils/deprecation.py", line 92, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/venv/lib/python3.12/site-packages/polars/io/csv/functions.py", line 503, in read_csv
df = _read_csv_impl(
^^^^^^^^^^^^^^^
File "/home/siqube/lab/aeye-lab/pymovements/venv/lib/python3.12/site-packages/polars/io/csv/functions.py", line 649, in _read_csv_impl
pydf = PyDataFrame.read_csv(
^^^^^^^^^^^^^^^^^^^^^
polars.exceptions.ComputeError: could not parse `# Message: UE-keypress N` as dtype `f64` at column 'column_4' (column number 4)
adding # Message: UE-keypress N to the null_values list.
Original error: remaining bytes non-empty
</details>
`skip_rows` was abused to skip the header, but the header sizes differ from file to file, which presumably lead to silently failures, so this error is good.
## Context
Please provide any relevant information about your setup.
This is important in case the issue is not reproducible except for under certain conditions.
* Project Version / Commit: 26747e8beef6751c74453932d6ac2447052fd703
* Operating System: Ubuntu 24.04
## Checklist
- [x] I am running the latest version
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
- [x] I have provided sufficient information for the team
The text was updated successfully, but these errors were encountered:
Current Behavior
DIDEC dataset does NOT load.
Expected Behavior
DIDEC dataset does load into memory.
Minimum acceptance criteria
Failure Information (for bugs)
the DIDEC dataset currently fails because there is currently no parser for BeGaze datasets.
Steps to Reproduce
install pymovements from source via
then execute the following script:
the dataset does download and extract but then unfortunately errors:
polars.exceptions.ComputeError: could not parse `# Message: UE-keypress N` as dtype `f64` at column 'column_4' (column number 4)
more details here:
The current offset in the file is 163557 bytes.
You might want to try:
infer_schema_length
(e.g.infer_schema_length=10000
),dtypes
argumentignore_errors
toTrue
,# Message: UE-keypress N
to thenull_values
list.Original error:
remaining bytes non-empty
The text was updated successfully, but these errors were encountered: