minor bugfixes on aa_export_toBIDS - #196
Conversation
|
It seems quite all right, but I am not so sure about because it deletes src_dummy from which the pipeline but leaves src, the temporary file. |
|
I could be wrong but don't we want to keep src? In my test pipeline src is the .nii that gets generated at the end of aamod_covert_epi. I discovered this problem by running export_toBIDS twice. On the second run, the copyfile crashes because src was deleted from aamod_convert_epi in the previous pass. |
|
It depends on the use case:
|
|
Are you able to run export_toBIDS twice on your data? This is what alerted us to the problem. |
|
Yes, I can run
However, both issues are irrrelevant regarding the current PR. Still, they should be fixed, of course. |
Interesting. I'll look into what is peculiar about my data (which crashes)... |
|
Okay, finally got some time to look into this. I think the line in question should actually read:
The hiccup is src_dummy gets created by checking if any of the modules have a "dummyscan" output stream (line 225) -- this will be true for any pipeline that contains aamod_convert_epis even if you don't actual create any dummyscans. So we need an additional check if scr_dummy is empty. That fixed the crash on my machine. |
|
This looks good to me. Do you want to update the PR? |
Nah -- it was my screw up. I'll push a correction... |
Took export_to_BIDS out for a test drive. Here's a few bugfixes...