-
Notifications
You must be signed in to change notification settings - Fork 4
Template merger #105
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
Template merger #105
Conversation
# Conflicts: # .idea/DigLabTools.iml # .idea/misc.xml
|
Hello @sifaoufatai! Thanks for updating this PR.
Comment last updated at 2025-01-23 10:18:07 UTC |
SylvainTakerkart
left a 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.
Hi! Here is my general comment: the code looks nice, but I have suggestions / questions on the naming of several classes.... Thanks to answer all the comments with corresponding commits, so that I can easily re-review after your changes!
| return data_types_data | ||
|
|
||
|
|
||
| class DataTypes: |
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.
why not call this class BidsDataType? this would be more explicit...
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.
I think it is not useful to rename it because we don't use this code anymore. We are coding through the bep32toolss repository.
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.
so you should remove this code!
this is why I created an issue: #108
can you please list in this issue what you think should be removed from the DigLabTools repo?
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.
a general comment on this file and all the others concerning the schema: the BIDS Schema is available online, I don't think it's a good idea to include it in this repo!!!
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.
please list this (the schema) in the issue I created about cleaning the repo!
elab_bridge/Extractor.py
Outdated
| ) | ||
|
|
||
| # Arguments for extracting | ||
| parser.add_argument("--jsonfile_extract", help="The JSON file path for extraction.", type=str) |
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.
same as with the Merger, there should be a version of the options with only one dash and on letter (for example: -j)
elab_bridge/Merge.py
Outdated
| ), | ||
| formatter_class=argparse.RawDescriptionHelpFormatter | ||
| ) | ||
| parser.add_argument("--sorted_list_input_files", nargs="+", help="List of JSON files to merge", type=str, |
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 I told you, there should be options with one dash and one letter, for example -s
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.
this can be done later... please create an issue on the repo to remember that you have to do this later!
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.
I'm waiting for you to create this issue before we can merge this PR (so that we don't forget!!!)
`Added short options (-letter) for long options (--words) to improve usability`
Implement merging process for subforms and group field extraction method