-
Notifications
You must be signed in to change notification settings - Fork 5
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
[ENH] Allow tck.gz
files to be used as input
#15
Conversation
Enhancement for #14 to accommodate .tck.gz files by first unzipping them. mapping.py also uses tractography_imap but does not check for extensions, would it matter there?
Looks good to me! Does it work for your use-case? |
I haven’t actually tested oops, let me test this in a conda environment and get back! |
Added mkdtemp
@arokem sorry I tested this last night - it still writes a .tck file to the qsirecon folder and doesn’t delete it after pyAFQ completes... Do I need something like a |
That's weird. Can you print the value of temp_tck? I would expect this to be a file-system location entirely different from your qsirecon folder, so it's odd that anything ends up there. |
Print temp_tck for debugging
I also tried this but the
The logger line prints:
|
That's very odd. I'd expect mkdtemp to give you a completely different file-system location:
Is |
|
split temp_tck path to generate relative path instead of absolute path
@arokem that worked! the temporary folder was used and the qsirecon no longer has a
|
Great! Sorry that it took so many iterations to get to a working solution... @36000 : WDYT? Should we leave that line of logging in or is that just noise? |
I think its fine! Should we merge this? |
tck.gz
files to be used as input
Enhancement for #14 to accommodate .tck.gz files by first unzipping them.
This is important because qsirecon pipeline produces tck.gz outputs.
Before this change, these files would not be recognized, leading to a crash later on.