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
There's a type error in a polars computation.
Maybe there's an operation that gets accidentally a column string?
Or the nesting didn't work properly?
Or there's something strange with the default values?
(base) user3@ift-dgx:~/lab/pymovements $ cat t.py
import pymovements as pm dataset = pm.Dataset('GazeBase', path='data/GazeBase') dataset.download() dataset.load() dataset.pos2vel()
(base) user3@ift-dgx:~/lab/pymovements $ pip install --user --upgrade pymovements Looking in indexes: https://pypi.org/simple, https://packagecloud.io/github/git-lfs/pypi/simple Requirement already satisfied: pymovements in /home/user3/.local/lib/python3.9/site-packages (0.16.1.post0+git.47e29b71.dirty)
(base) user3@ift-dgx:~/lab/pymovements
$ python t.py
Downloading https://figshare.com/ndownloader/files/27039812 to data/GazeBase/downloads/GazeBase_v2_0.zip
GazeBase_v2_0.zip: 100%|█████████████████████████████████████████████| 6.25G/6.25G [03:20<00:00, 33.4MB/s]
Checking integrity of GazeBase_v2_0.zip
Extracting GazeBase_v2_0.zip to data/GazeBase/raw
100%|███████████████████████████████████████████████████████████████| 12334/12334 [08:12<00:00, 25.02it/s]
0%| | 22/12334 [00:01<12:45, 16.09it/s]
Traceback (most recent call last):
File "/home/user3/lab/pymovements/t.py", line 7, in <module>
dataset.pos2vel()
File "/home/user3/lab/pymovements/src/pymovements/dataset/dataset.py", line 355, in pos2vel
gaze_df.pos2vel(method=method, **kwargs)
File "/home/user3/lab/pymovements/src/pymovements/gaze/gaze_dataframe.py", line 373, in pos2vel
self.transform('pos2vel', method=method, **kwargs)
File "/home/user3/lab/pymovements/src/pymovements/gaze/gaze_dataframe.py", line 298, in transform
[
File "/home/user3/lab/pymovements/src/pymovements/gaze/gaze_dataframe.py", line 299, in <listcomp>
df.with_columns(transform_method(**kwargs))
File "/home/user3/.local/lib/python3.9/site-packages/polars/dataframe/frame.py", line 7631, in with_columns
self.lazy()
File "/home/user3/.local/lib/python3.9/site-packages/polars/utils/deprecation.py", line 93, in wrapper
return function(*args, **kwargs)
File "/home/user3/.local/lib/python3.9/site-packages/polars/lazyframe/frame.py", line 1695, in collect
return wrap_df(ldf.collect())
exceptions.ComputeError: arithmetic on string and numeric not allowed, try an explicit cast first
Context
Project Version / Commit: v0.16.1
Operating System: linux
The text was updated successfully, but these errors were encountered:
Current Behavior
There's a type error in a polars computation.
Maybe there's an operation that gets accidentally a column string?
Or the nesting didn't work properly?
Or there's something strange with the default values?
Context
The text was updated successfully, but these errors were encountered: