-
Couldn't load subscription status.
- Fork 536
Fixes/copyfile #65
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
Fixes/copyfile #65
Conversation
| this gets to be a little more complicated. i'll try to fix this up tonight. say fl = ['a/f.nii','b/f.nii','c/f.nii'] these files are exactly the same as the original files. ps. i don't like the c's increasing. |
| You are right but this will never happen since we are deleting folders that are about to be rerun. The problem with checking if two files are the same before overwriting (which I assume is the solution you are leaning to) is that it is almost impossible to do using timestamp method. I still think (and primarily use) this method because it is so much faster than reading and hashing file content for big files. |
| we are deleting folders, but there are two cases, where i think the delete doesn't take place but don't affect your solution:
also talking of this change the split_filename function will fail on a file such as /b/c.d.nii.gz i think that function needs to become specific to neuroimaging extensions .img, .hdr, .nii, .nii.gz, .mgz, .mgh and others also would you mind using the following instead of adding 'c' (think 2000 con_0001.img :) ) |
…maint/0.3 * 'spm_reslice' of git://github.com/chrisfilo/nipype: support for apply_to_files in coregister write allow multiple files in "source" for coregister reslice
…ng csv2rec. 2. Analysis implemented using nitime objects. 3. Array outputs defined.
…, csv files and matplotlib-generated figures.
I have included the renaming changes you have suggested. I agree this is cleaner. I have also slightly modified the split_filename function to correctly split your example. I have assumed that we'll have a list of multiple segment extensions (like nii.gz) and default to single segment extension (like .img). Afterall for uknown (non neuroimaging) extension we'd like it to still work ie split_filename("foo.txt") should give ".txt" as an extension. |
…es/copyfile * 'fixes/copyfile' of github.com:chrisfilo/nipype: improved handling of extensions in split_filename incremental numbering instead of stacking "c"s BF: proper linking/copying multiple files of the same name into working directory Conflicts: nipype/utils/filemanip.py
No description provided.