Skip to content

Commit

Permalink
Warnings for deprecated attribute in FixationTrains was oversensitive (
Browse files Browse the repository at this point in the history
…#55)

Signed-off-by: Matthias Kümmmerer <[email protected]>
  • Loading branch information
matthias-k authored Mar 10, 2024
1 parent e2029a1 commit 5f93ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysaliency/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ def __init__(self, train_xs, train_ys, train_ts, train_ns, train_subjects, scanp

if attributes is None:
attributes = {}
else:
warnings.warn("don't use attributes for FixationTrains, use scanpath_attributes or scanpath_fixation_attributes instead!")
elif attributes:
warnings.warn("don't use attributes for FixationTrains, use scanpath_attributes or scanpath_fixation_attributes instead!", stacklevel=2)

self.auto_attributes = []

Expand Down

0 comments on commit 5f93ed1

Please sign in to comment.