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

Convert msec to sec for ECAT to BIDS json #230

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

bilgelm
Copy link
Collaborator

@bilgelm bilgelm commented Nov 10, 2023

Various ECAT entries are in msec, including several frame time entries. These need to be converted to seconds to be compatible with PET-BIDS. The python implementation currently doesn't check the time unit, resulting in msec values in the json.

This PR determines which ECAT entries are in msec by looking at the "comment" field in ecat_headers.json and converts their values to seconds.

Verified that the conversion works for the ECAT v7.0 example included in the repo and for ECAT v7.3. Will add this ECAT v7.3 phantom data to the Google folder.

@bendhouseart
Copy link
Contributor

@bilgelm please bump version to 1.2.X +1 in pypet2bids/pyproject.toml will approve and merge following that.

@bilgelm
Copy link
Collaborator Author

bilgelm commented Nov 13, 2023

Bumped version to 1.2.8.

@bendhouseart bendhouseart merged commit e8e142f into openneuropet:main Nov 13, 2023
7 of 8 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.

2 participants