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

Openneuropet main #314

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pypet2bids/pypet2bids/ecat2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@
sub_headers[0]["X_DIMENSION"],
sub_headers[0]["Y_DIMENSION"],
sub_headers[0]["Z_DIMENSION"],
main_header["NUM_FRAMES"],
len(sub_headers),
)

# make sure number of data elements matches frame number
single_frame = False
if img_shape[3] == 1 and img_shape[0:2] == shape_from_headers[0:2]:
single_frame = True
if img_shape != shape_from_headers and not single_frame:
raise Exception(
f"Mismatch between expected X,Y,Z, and Num. Frames dimensions ({shape_from_headers} obtained from headers"
raise Warning(
f"Mis-match between expected X,Y,Z, and Num. Frames dimensions ({shape_from_headers} obtained from headers"

Check failure on line 163 in pypet2bids/pypet2bids/ecat2nii.py

View workflow job for this annotation

GitHub Actions / Check for spelling errors

Mis-match ==> Mismatch
f"and shape of imaging data ({img_shape}"
)

Expand Down
Loading