Skip to content

Commit

Permalink
method gets multiple values
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrako committed Sep 14, 2023
1 parent 6ea6b77 commit be90ae4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pymovements/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from pymovements.events.frame import EventDataFrame
from pymovements.events.processing import EventGazeProcessor
from pymovements.gaze import GazeDataFrame
from pymovements.gaze.transforms import TransformLibrary


class Dataset:
Expand Down Expand Up @@ -245,11 +244,8 @@ def apply(
self._check_gaze_dataframe()

disable_progressbar = not verbose
for gaze_df in tqdm(self.gaze, disable=disable_progressbar):
if method in TransformLibrary:
gaze_df.transform(method, **kwargs)
else:
raise ValueError(method)
for gaze in tqdm(self.gaze, disable=disable_progressbar):
gaze.apply(method, **kwargs)

return self

Expand Down

0 comments on commit be90ae4

Please sign in to comment.