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

Making read-all default for reading MR acquisitions from file. #1227

Merged
merged 45 commits into from
Jan 16, 2024

Conversation

evgueni-ovtchinnikov
Copy link
Contributor

@evgueni-ovtchinnikov evgueni-ovtchinnikov commented Dec 15, 2023

Changes in this pull request

Failures cased by noise calibration data forced ignoring it, which was a poor solution. It turns out that ignoring these data just on the preliminary test run in AcquisitionProcessor chain (just to find out whether the chain needs AcquisitionFinishGadget) appears to fix the problem save for grappa2_1rep.h5 and grappa2_6rep.h5 data. Possible reason for failures with the latter data is the absence of the measurementInformation in xml headers. Assuming this is so, we can now use the proper read-all default when reading MR acquisition data, fixing grappa2 data to be addressed by a separate issue.

Testing performed

Tested on meas_MID80_2d_cart_cine_30ph_headcoil_FID17006.h5 and 3D_RPE_Lowres.h5 data provided by @ckolbPTB and @johannesmayer.

Related issues

Fails on grappa2_1rep.h5 and grappa2_6rep.h5 by @DANAJK . Possible reason is the absence of the measurementInformation in xml section - an issue to be created.

For some reason, GitHub decided to treat this PR as a continuation of already merged #1207 - all the commits listed below up to 8343cd3 are actually from #1207.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added docstrings/doxygen in line with the guidance in the developer guide
  • I have implemented unit tests that cover any new or modified functionality
  • The code builds and runs on my machine
  • CHANGES.md has been updated with any functionality change

Contribution Notes

Please read and adhere to the contribution guidelines.

Please tick the following:

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in SIRF (the Work) under the terms and conditions of the Apache-2.0 License.

evgueni-ovtchinnikov and others added 30 commits July 21, 2023 15:01
remove `-e` from the ctest line preventing unit test to complete.
…Data

Failures cased by noise calibration data forced ignoring it, which was
a poor solution. It turned out that ignoring these data just on the
preliminary test run in AcquisitionProcessor chain (to find out whether
the chain needs AcquisitionFinishGadget) appears to fix the problem
save for grappa2_1rep.h5 an grappa2_6rep.h5 data. Possible reason for
failures with the latter data is the absence of the measurementInformation
in xml headers. Assuming this is true, we can now use the proper
read-all-acquisition default when reading MR acquisition data, fixing
grappa2 data to be addressed by a separate issue.
@KrisThielemans
Copy link
Member

Did this PR branch of from the wrong branch? Probably needs to be rebased on master, or alternatively master merged on here.

@KrisThielemans
Copy link
Member

KrisThielemans commented Jan 16, 2024

@ckolbPTB @evgueni-ovtchinnikov where are we with this one? It seems small enough.

If it is ready, I suggest to squash-merge it, as it has a very large history but only few surviving changes.

@ckolbPTB
Copy link
Contributor

@evgueni-ovtchinnikov do you think you could run the MR exercises (https://github.com/SyneRBI/SIRF-Exercises/tree/master/notebooks/MR) to make sure we can still reconstruct the data with this change?

@evgueni-ovtchinnikov
Copy link
Contributor Author

@ckolbPTB all MR notebooks run ok - permission to merge?

@KrisThielemans the history is large because GitHub somehow figured out that this branch is a continuation of ignore-acq: actually, only 4 last commits are for ignore-acq-fix-noise!

@KrisThielemans
Copy link
Member

KrisThielemans commented Jan 16, 2024

We could sort out the history, or just squash (i.e. all changes will be entered as a single commit). It's not a great idea if others have incorporated this branch in their work, but I guess that's unlikely in this case (and they could speak up now).

If you do squash merge, please edit the suggested commit message such that it makes sense (as github will just list all the commit messages anyway)

@ckolbPTB
Copy link
Contributor

@evgueni-ovtchinnikov thank you and yes

@KrisThielemans
Copy link
Member

great. @evgueni-ovtchinnikov I suggest you "squash and merge" then (click on the arrow on the green button)

@evgueni-ovtchinnikov evgueni-ovtchinnikov merged commit 22e8fc1 into master Jan 16, 2024
6 checks passed
@evgueni-ovtchinnikov evgueni-ovtchinnikov deleted the ignore-acq-fix-noise branch January 16, 2024 15:47
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.

4 participants