-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScreenResolution, Start&StopTime warning #26
Conversation
julia-pfarr
commented
Sep 13, 2023
- changed where to get ScreenResolution from: now getting it from "GAZE_COORDS" instead of "DISPLAY_COORDS"
- throw warning when multiple Start&StopTimes according to issue#2
- "DISPLAY_COORDS" is apparently not present in every asc file, thus changed extraction of ScreenResolution to get it from "GAZE_COORDS" - put underscore before eyetrack./events.json output file spec
for more information, see https://pre-commit.ci
Merge github.com:julia-pfarr/eye2bids
for more information, see https://pre-commit.ci
return ( | ||
(df[df[2] == "GAZE_COORDS"]) | ||
.iloc[0:1, 3:5] | ||
.to_string(header=False, index=False) | ||
.replace(".00", "") | ||
.split(" ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should return integer values and currently it is returning strings
that's why the tests are failing
"""Your input file contains multiple start times.\n | ||
As this is not seen as good practice in eyetracking experiments, only the first start time will be kept for the metadata file.\n | ||
Please consider changing your code accordingly for future eyetracking experiments.\n""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Your input file contains multiple start times.\n | |
As this is not seen as good practice in eyetracking experiments, only the first start time will be kept for the metadata file.\n | |
Please consider changing your code accordingly for future eyetracking experiments.\n""" | |
"""Your input file contains multiple start times.\n | |
As this is not seen as good practice in eyetracking experiments, \n | |
only the first start time will be kept for the metadata file.\n | |
Please consider changing your code accordingly for future eyetracking experiments.\n""" |
"""Your input file contains multiple stop times.\n | ||
As this is not seen as good practice in eyetracking experiments, only the last stop time will be kept for the metadata file.\n | ||
Please consider changing your code accordingly for future eyetracking experiments.\n""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Your input file contains multiple stop times.\n | |
As this is not seen as good practice in eyetracking experiments, only the last stop time will be kept for the metadata file.\n | |
Please consider changing your code accordingly for future eyetracking experiments.\n""" | |
"""Your input file contains multiple stop times.\n | |
As this is not seen as good practice in eyetracking experiments, \n | |
only the last stop time will be kept for the metadata file.\n | |
Please consider changing your code accordingly for future eyetracking experiments.\n""" |
.tolist() | ||
) | ||
if len(StopTime) > 1: | ||
e2b_log.info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e2b_log.info( | |
e2b_log.warning( |
.tolist() | ||
) | ||
if len(StartTime) > 1: | ||
e2b_log.info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e2b_log.info( | |
e2b_log.warning( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may to just use warning.warns
instead of using the logger but we can decide on that later
FYI: in general it is better to tackle only one "problem" per pull request: in this one we are working on both the start / stop time AND the screen resolution. One PR for each makes it easier to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instru