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

Updates for GE HBCD Sequence #147

Merged
merged 8 commits into from
Sep 23, 2024
Merged

Conversation

agudmundson
Copy link
Contributor

More updates for the GE HBCD ISTHMUS sequence. Resolves issues with multichannel data, handles separated short TE and long TE scans that have the same PSD, and correctly uses HERCULES vs. ISTHMUS specific processing routines.

@agudmundson
Copy link
Contributor Author

@wtclarke Getting a failure in the validation.py from the dimensions. The data is correctly shaped (you can see from my log statements just above the error.. Can you see an obvious reason as to why this might be having an issue?

@wtclarke
Copy link
Owner

Just looks like the dimensions are changed. Did you change the order? If so you will need to update the tests.

@agudmundson
Copy link
Contributor Author

@wtclarke Thanks for getting back to me! I thought this was the issue as well, so I went back and made sure that it was ordered the same as before. Still received the same error regardless unfortunately.

@wtclarke
Copy link
Owner

But it clearly has. The test which was passing before these changes checks for

img = NIFTI_MRS(tmp_path / 'hbcd_edited.nii.gz')
assert img.shape == (1, 1, 1, 2048, 56, 8, 4)

but now that line is failing in the test here

    00 _edited         (1, 1, 1, 2048, 56, 4, 8)
...
FAILED tests/test_ge_pfile.py::test_hbcd_isthmus - assert (1, 1, 1, 2048, 56, 4, ...) == (1, 1, 1, 2048, 56, 8, ...)

and your changes have swapped the last two dimensions.

@agudmundson
Copy link
Contributor Author

@wtclarke I thought I switched them back after I received the error. Let me ensure I pushed those changes up.

@wtclarke
Copy link
Owner

Right, but that's just the labelling of the dimensions, the actual sizes are dictated by the data shape you've constructed.

@wtclarke
Copy link
Owner

Does new_shape.insert(5, edit_cases) insert in the right place?

@agudmundson
Copy link
Contributor Author

@wtclarke ahh you're right, I forgot to update the reshaping. Looks to have passed now. Thank you!

@agudmundson
Copy link
Contributor Author

@wtclarke Hi Will, did we need anything else or can we close this out?

@wtclarke wtclarke merged commit 981f32e into wtclarke:master Sep 23, 2024
4 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