PeerHerholz / BIDSonym

a BIDS app for pseudo-anonymization of neuroimaging data
https://peerherholz.github.io/BIDSonym/
BSD 3-Clause "New" or "Revised" License
51 stars 14 forks source link

Return lists of defaced t1w and t2w and define it for t2w #83

Open yarikoptic opened 2 months ago

yarikoptic commented 2 months ago

Otherwise if no t1w files found, the variable t1w would not get populated in the loop at all and cause the crash. But it also does not make much sense to return only the last hit in the loop. Checking the workflow, it seems outputs are not used at all anyways, so we are gonna try to return a list

disclaimer -- didn't test yet and it seems there are no tests here to tell me that I screwedup

Closes #69