Fixes #746 Record ExploreASL version on Import#773
Conversation
jan-petr
left a comment
There was a problem hiding this comment.
This is good (I made minor changes only - all committed already). But not all I wanted - see the issue description. I wrote some explanations as well so that you get the big picture of why we need that ;) Cause we will need to implement a lot in 1.9.0 which is related to these versions.
|
Note to myself: also fix the "RandomText" things here 👍 Edit: don't really think this is a problem anymore. If I remove those fields from the original studyPar, they don't get added as that. |
|
You can run |
Yes of course you are right. RandomText has been removed long time ago - it is only in studyPar.jsons and we can keep it there, no need to remove it from there and from reference in all cases. |
jan-petr
left a comment
There was a problem hiding this comment.
All looks very good. Including the test! One thing we need to improve. The "Imported with ExploreASL" is potentially not the only text in the Acknowledgement - we need to be able to deal with extra text - see comments inside the code.
Testing/UnitTests/xASL_ut_function_xASL_bids_CheckDatasetDescription.m
Outdated
Show resolved
Hide resolved
Testing/UnitTests/xASL_ut_function_xASL_bids_CheckDatasetDescription.m
Outdated
Show resolved
Hide resolved
jan-petr
left a comment
There was a problem hiding this comment.
Thanks for the fixes - it looks good. Two more comments, that weren't somehow submitted before...
First - we don't create the whole acknowledgement - we load it from studyPar and add our ExploreASL part at the end.
Second - now that we export the version, it will mess up the Flavors - i.e. the reference and new import will always differ because everything was done with the older version - shall we ignore the acknowledgement field in the comparison script?!
Example before changes 9712786Example after changes 9712786 |
Added described functionality. Added unit test. Added BIDS2Legacy user feedback.
e4b71cf to
9c44d40
Compare
Linked issue
#746