Skip to content
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

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

julia-pfarr
Copy link
Member

  • 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

julia-pfarr and others added 6 commits September 13, 2023 13:07
- "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
Merge github.com:julia-pfarr/eye2bids
Comment on lines +224 to +229
return (
(df[df[2] == "GAZE_COORDS"])
.iloc[0:1, 3:5]
.to_string(header=False, index=False)
.replace(".00", "")
.split(" ")
Copy link
Contributor

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

Comment on lines +249 to +251
"""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"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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"""

Comment on lines +265 to +267
"""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"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
e2b_log.info(
e2b_log.warning(

.tolist()
)
if len(StartTime) > 1:
e2b_log.info(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
e2b_log.info(
e2b_log.warning(

Copy link
Contributor

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

@Remi-Gau
Copy link
Contributor

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

Copy link
Collaborator

@mszinte mszinte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good

Copy link
Collaborator

@mszinte mszinte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instru

@mszinte mszinte merged commit 0b97a85 into bids-standard:main Oct 24, 2023
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants