-
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
Unexpected behaviour: CONFIG file is modified by the software #86
Comments
Thanks for reporting this. The modification of the YML config file was introduced in #57 to track which files have been modified. It is useful, for example, when a user needs to pause/restart corrections. The correction process in such a case continues from the last non-corrected subject instead of starting from the beginning. But I agree that it might be confusing. I have an open issue about it: #62 Relevant comment from Nathan here: #57 (comment) |
Maybe a Also, this behaviour should appear as a subsection in the README. In general (bigger issue), the README section should be self-contained, and users should not have to go to the example section to understand how to use this software. |
Potential idea: The original config file would be kept as it is (without any filename or content modifications), for example, FILES_LABEL:
- sub-Marseille1_UNIT1.nii.gz
- sub-MGH1_UNIT1.nii.gz
- sub-MNI1_UNIT1.nii.gz
- sub-MPI1_UNIT1.nii.gz
- sub-NTNU1_UNIT1.nii.gz
- sub-NYU1_UNIT1.nii.gz
- sub-UCL1_UNIT1.nii.gz After running and stopping CORR_LABEL:
- sub-Marseille1_UNIT1.nii.gz
- sub-MGH1_UNIT1.nii.gz
- sub-MNI1_UNIT1.nii.gz
FILES_LABEL:
- sub-MPI1_UNIT1.nii.gz
- sub-NTNU1_UNIT1.nii.gz
- sub-NYU1_UNIT1.nii.gz
- sub-UCL1_UNIT1.nii.gz If the user wanted to continue from the last modified file, they would enter the path to the |
@maxradx please chip in and cross-ref your approach |
Thanks @maxradx for sharing you method but few things are missing to make it usable:
|
1- Yes there are a lot of variables but they could be listed and the code adapted (quite easily I think). The config file comes with the module in 3DSlicer developed by Dr Letourneau. Using manual_correction, we could create a function at the beginning of the script so the first time it is ran, a generic config file is generated in a specified folder and then we can customize it for further use? |
After figuring out #85, I manually created a YML file that looked like this:
After running
manual_correction.py
, I wanted to document in another project how I did it. So I was about to package my config file, but... what a surprised: it has been modified by the software. It now looks like this:Modifying config file is highly unexpected and should not happen.
The text was updated successfully, but these errors were encountered: