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
dkrako
changed the title
create method to check Experiment, Screen and EyeTracker for equality
check Experiment, Screen and EyeTracker for equality
Jan 8, 2025
Description of the problem
There are a lot of places in our source and test code that manually checks for equality of
Experiment
,Screen
orEyeTracker
objects.Description of a solution
Create a method like
Experiment.__eq__(Experiment: other) -> bool
with corresponding methods for theScreen
andEyeTracker
classes.Minimum acceptance criteria
Experiment.__eq__(Experiment: other) -> bool
Screen.__eq__(Screen: other)
EyeTracker.__eq__(EyeTracker: other)
Context
Here's some further information for reference: https://stackoverflow.com/questions/390250/elegant-ways-to-support-equivalence-equality-in-python-classes
The text was updated successfully, but these errors were encountered: