-
Notifications
You must be signed in to change notification settings - Fork 76
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
[WIP] Parse ADNI XML metadata #587
[WIP] Parse ADNI XML metadata #587
Conversation
Hello @NicolasGensollen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-03-30 08:20:43 UTC |
Back when the first PR was proposed, I was wondering whether we could leverage the new pandas.read_xml to parse the XML metadata instead of raw My thinking being: could we just let |
Thanks @NicolasGensollen for picking this up. Also, for the record, the two main elements that were blocking for merging 431 were (in order of priority):
|
@NicolasGensollen, before finalizing can you make sure to add @emaheux to the |
@omar-rifai Of course ! I can also add you as the author of another one since I started from your work! |
d7784cb
to
8b2147f
Compare
Hello @NicolasGensollen, let us know if this is finalized so that we can review and merge. Thanks ! |
Hi @omar-rifai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks ! I'll merge after the rebase.
|
||
.. note:: | ||
Use multiprocessing / multithreading for parsing the files? | ||
Not sure we will get a huge performance boost by doing that tbh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the rationale behind this comment? Threading seems to be designed for that purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, we can remove the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in d8b7d59
8b2147f
to
de25bcf
Compare
Probably related to the test itself but I'm getting an
|
@NicolasGensollen, can you also please run a |
Done in 6034162
Oops, missed your comment on Friday. |
Yes seems to work now, thanks! I also fixed some issues with the |
Co-authored-by: Ghislain Vaillant <[email protected]>
6034162
to
2c043d2
Compare
This PR continues the work started in #431 for adding metadata from XML files to the output of the ADNI to BIDS convertor. (Note: I made a lot of refactoring so I went for opening a new PR since the diff would be huge anyway...).
adni_json.py
: shorter functions (especiallyparse_xml_file
), more explicit variable and function names, docstrings, all functions private exceptcreate_json_metadata
...