-
Notifications
You must be signed in to change notification settings - Fork 532
dcmstack output file path #1087
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
Comments
Right now, I guess that's not possible: nipype/nipype/interfaces/dcmstack.py Line 76 in 44f7566
A nice solution to the problem could be adding a bool switch to NiftiGeneratorBaseInputSpec indicating if the path is absolute or relative. Then, modify the line I've pointed out to choose between op.join or op.abspath. |
and how would that switch get triggered? |
@TheChymera I have written a fast patch, let me know if it works out for you. I'm not 100% sure this will work, but you'll need to check it out from my branch:
PS. When you use the interface, make sure you set the input |
Do I need to test this before the pull gets accepted? I am running the live nipype version, but setting up a development installation that works nicely with my package manager might take a while :-/ |
@oesteban how do I use this feature? I installed the live version of nipype, and still stuff gets exported to I guess I have t speify the destination via somethign other than |
try |
@satra so:
? |
yes |
@satra tried it - that still exports the file to |
i looked at the code, and it looks like it's doing the correct thing. can you insert a debug breakpoint and step through. |
uhm, how do I do that? Can you maybe test this at your end as well? I am just running the interface as:
And that prints |
ok, I see. There is also this function nipype/nipype/interfaces/dcmstack.py Line 36 in df63a28
out_path input that is cwd by default?
|
@TheChymera now you can do (provided you checkout my branch):
|
@satra I've taken a glimpse on the testkraut project and it looks awesome. Very appropriate for nipype :) |
@oesteban sadly, I have still not set up any ebuilds for different live sources than the main branch on the main tree. I believe I will not do so soon, actually. I hope you can pull this here within the next few days. |
I'm to merge this then. I've done the following:
Then,
|
Looks great! |
Hello, I am trying to specify an ouput file path for the
nipype.interfaces.dcmstack.DcmStack
interface, which should be in my data hierarchy and not in my script hierarchy.I am doing this ~via:
stubbornly, dcmstack will export the resulting file to
/path/to/my/script/_path_to_my_data
Can we fix this somehow? Right now I hav to export to my script directory and then move the file -.- which is a dodgy and slow way to fix this (different hard drives etc).
The text was updated successfully, but these errors were encountered: