-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add options for sub-folder and for func sesssions #88
Conversation
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 to me!
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 to me! Tested on functional data and the script works as expected.
print(os.path.isfile(fname_label)) | ||
print('fname_label', fname_label) |
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.
@rohanbanerjee, these two prints might be removed, right? I guess they were used for debugging.
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 agree, missed on removing them. On it.
@@ -897,6 +1022,7 @@ def main(): | |||
# a JSON file | |||
update_json(fname_out, name_rater, json_metadata) | |||
# Generate QC report | |||
#generate_qc(fname, fname_out, task, fname_qc, subject, args.config, args.qc_lesion_plane, suffix_dict) |
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.
@rohanbanerjee, I believe that this line was commented on only for debugging the fmri case. In other cases, we want to generate QC. Thus, I believe a condition checking if contrast = 'func'
should be added here.
@@ -215,6 +215,12 @@ def get_parser(): | |||
type=str, | |||
default=None | |||
) | |||
parser.add_argument( #TODO | |||
'-add-subfolder', | |||
help="Add a subfolder to find labels or segmentation to correct", |
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.
Example(s) should be added here
Thanks for the review @rohanbanerjee! However, I left a few comments which need to be adrrresed. |
This reverts commit 7242702.
Description
I add the option for the
func
sub-folder inutils.py
I also add the option for a
sub-folder
in the path-img, but maybe we do not want that! A better solution for this is to get the image path not by recreating it.Related issues: #81