bids-matlab
bids-matlab copied to clipboard
implement "force" copy_to_derivatives without getting caught into an infinite loop
- [ ] implement a way to "force" copy without getting caught into an infinite loop
The way dependencies are indexed, they reference each other ( fileA_events.tsv <--> fileA_bold.nii).
When using "force copy" and "do not skip dependencies", this leads to an infinite loop of copying.
At the moment I circumvented the problem by preventing to copy dependencies of dependencies: but this might be suboptimal as when copying func file, it might not copy all the necessary fmap for example.
Originally posted by @Remi-Gau in https://github.com/bids-standard/bids-matlab/issues/207#issuecomment-823011021