bids-matlab icon indicating copy to clipboard operation
bids-matlab copied to clipboard

implement "force" copy_to_derivatives without getting caught into an infinite loop

Open Remi-Gau opened this issue 4 years ago • 0 comments

  • [ ] 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

Remi-Gau avatar Apr 20 '21 07:04 Remi-Gau