Skip to content

Fix crash with overlapping filenames#835

Open
alexcraven wants to merge 1 commit intoschorschinho:Osprey3.0from
alexcraven:alexcraven-patch-duplicatenames
Open

Fix crash with overlapping filenames#835
alexcraven wants to merge 1 commit intoschorschinho:Osprey3.0from
alexcraven:alexcraven-patch-duplicatenames

Conversation

@alexcraven
Copy link
Copy Markdown
Contributor

Correction to the check for overlapping filenames at the top of OspreyCoreg (which triggered #834), for non-BIDS datasets.

Previous version only checked the first two items in MRSCont.files, hence was only reliable if all filenames were identical. Updated version catches the case where any names overlap.

Tested for GE P-files, where names tend to differ, but are not guaranteed unique.

The original code also handled the case where the files list contained directories rather than individual folders; updated code should also handle this elegantly, but has only been tested with hypothetical lists.

Correction to the check for overlapping filenames at the top of OspreyCoreg (which triggered schorschinho#834)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant