Skip to content

Fixes #639 Hadamard decoding: json fields for Hadamard#718

Merged
MichaelStritt merged 26 commits intodevelopfrom
feature-#639_JsonFieldsHadamard
Jul 30, 2021
Merged

Fixes #639 Hadamard decoding: json fields for Hadamard#718
MichaelStritt merged 26 commits intodevelopfrom
feature-#639_JsonFieldsHadamard

Conversation

@BeatrizPadrela
Copy link
Contributor

…eck and adding a comment to xASL_imp_DCM2NII_Subject_ShuffleTheDynamics

Linked issue

Required: mention the issue number of the linked feature or bug here

How to test

Required: if not defined in the linked issue, add a simple test description here

Comments

Optional: add helpful comments for the reviewers here

@BeatrizPadrela BeatrizPadrela requested a review from jan-petr July 8, 2021 13:32
@MichaelStritt MichaelStritt added the feature New feature, enhancement or request label Jul 8, 2021
@MichaelStritt
Copy link
Contributor

Hey @BeatrizPadrela & @jan-petr: I know nobody asked for my opinion on this, but I think we should be a bit more thrifty with adding JSON fields. Maybe things like HadamardType or something like that get accepted for ASL-BIDS someday, but things like MultiPLD or MultiTE can basically be determined from other fields, right?

Copy link
Member

@HenkMutsaerts HenkMutsaerts left a comment

Choose a reason for hiding this comment

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

Great work! Commit title: would be nice to do #639 xASL_bids_BIDSifyASLJSON: add multiPLD' note that if your commit title is too long, it will overflow in the detailed commit message. You can manage this by making your commit message title (first -m) short and the commit message (second -m) longer, e.g. commit -S -m 'short title' -m 'longer detailed message'

@MichaelStritt MichaelStritt self-requested a review July 27, 2021 19:23
@BeatrizPadrela BeatrizPadrela force-pushed the feature-#639_JsonFieldsHadamard branch 3 times, most recently from a108eae to 574e0f9 Compare July 27, 2021 19:57
@MichaelStritt MichaelStritt self-requested a review July 28, 2021 18:57
Copy link
Contributor

@MichaelStritt MichaelStritt left a comment

Choose a reason for hiding this comment

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

From my side it would be fine to merge it like this. After merging this to develop we can still check how we're going to handle xASL_module_ASL lines 86-88.

@MichaelStritt MichaelStritt linked an issue Jul 28, 2021 that may be closed by this pull request
@MichaelStritt MichaelStritt changed the title #639 xASL_bids_BIDSifyASLJSON addin multiPLD, multiTE and Hadamard ch… Fixes #639 Hadamard decoding: json fields for Hadamard Jul 28, 2021
@@ -192,23 +203,23 @@
warning('Did not succeed in repeating PLDs for each TE for Hadamard sequence import');
Copy link
Member

Choose a reason for hiding this comment

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

Note that this warning could be misleading if you have a Hadamard sequence with only one echotime!

Copy link
Contributor

Choose a reason for hiding this comment

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

Just remove warning? @jan-petr

@MichaelStritt
Copy link
Contributor

I think the overall code quality is a lot better now. Please re-test and post the results here @BeatrizPadrela.

Copy link
Contributor

@MichaelStritt MichaelStritt left a comment

Choose a reason for hiding this comment

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

Minor things that are left to improve. Please check my comments.

@MichaelStritt MichaelStritt added the debbie DEBBIE project related issues label Jul 29, 2021
@MichaelStritt MichaelStritt self-requested a review July 30, 2021 08:37
Copy link
Contributor

@MichaelStritt MichaelStritt left a comment

Choose a reason for hiding this comment

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

Check out my comment and maybe add that if necessary, otherwise it's fine for me 👍

@MichaelStritt
Copy link
Contributor

@BeatrizPadrela: I think the code should work now, but you should really start to test these things more thoroughly. We even have two test datasets for that. Maybe you can start by updating the reference studyPar files of them in the FlavorDatabase? I added this as a task in your bucket. Also try to check out x.logging if there was an error. There all error messages are stored, so you can easily look up in which file and line something goes wrong.

@BeatrizPadrela
Copy link
Contributor Author

@BeatrizPadrela: I think the code should work now, but you should really start to test these things more thoroughly. We even have two test datasets for that. Maybe you can start by updating the reference studyPar files of them in the FlavorDatabase? I added this as a task in your bucket. Also try to check out x.logging if there was an error. There all error messages are stored, so you can easily look up in which file and line something goes wrong.

Yes I can update the studyPar files in the FlavorDataBase for these datasets! And thanks for the x.logging tip :)

BeatrizPadrela and others added 26 commits July 30, 2021 20:18
…eck and adding a comment to xASL_imp_DCM2NII_Subject_ShuffleTheDynamics
You have to be a bit careful here. The keyword hadamard is also a matlab function, which is why it somehow worked for you, but certainly not as intended. In addition it was theoretically possible that x.modules.asl.bHadamard was true but there was no SeriesDescription and you would have checked that field later without checking for existence first. There was an easy fix for that though. I tested it based on Amnahs Hadamard-4 and it worked perfectly well. One minor warning because of the TotalAcquiredPairs, but maybe we have to see if that would still appear in current develop. I would merge these rather early and then improve it later on.
…rd and in the BIDSify we dont have x struct so isHadamard is enough
@MichaelStritt MichaelStritt force-pushed the feature-#639_JsonFieldsHadamard branch from a57d26f to 397f833 Compare July 30, 2021 18:24
@MichaelStritt MichaelStritt merged commit 397f833 into develop Jul 30, 2021
@MichaelStritt MichaelStritt deleted the feature-#639_JsonFieldsHadamard branch July 30, 2021 18:26
@jan-petr jan-petr removed the request for review from HenkMutsaerts August 16, 2021 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debbie DEBBIE project related issues feature New feature, enhancement or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hadamard decoding: json fields for Hadamard/multiTE & multiPLD

5 participants