Donders-Institute / bidscoin

BIDScoin converts your source-level neuroimaging data to BIDS
https://bidscoin.readthedocs.io
GNU General Public License v3.0
130 stars 36 forks source link

Clicking on item in bidsmapper GUI crashes program #222

Closed dzemanov closed 7 months ago

dzemanov commented 7 months ago

This bug was introduced in commit Add typing hints for bidsmap datatypes: a184d75bc6b5fd96a74457267f9e325b90e1607e

row 881 in bidseditor.py:

        self.bidsdatatypes: List[str]    = [datatype for datatype in template_bidsmap[self.dataformat] if datatype not in self.unknowndatatypes.union(self.ignoredatatypes, {'subject', 'session'})]

unknowndatatypes is a list, so calling union on it crashes with: AttributeError: 'list' object has no attribute 'union'

marcelzwiers commented 7 months ago

Thanks for reporting!