MICA-MNI / ENIGMA

The ENIGMA Toolbox is an open-source repository for accessing 100+ ENIGMA statistical maps, visualizing cortical and subcortical surface data, and relating neuroimaging findings to micro- and macroscale brain organization. 🤠
https://enigma-toolbox.readthedocs.io
BSD 3-Clause "New" or "Revised" License
125 stars 29 forks source link

SyntaxWarning because of "is" instead of "==" #35

Closed Katterrina closed 5 months ago

Katterrina commented 5 months ago

https://github.com/MICA-MNI/ENIGMA/blob/2591ccefdbf94439db4080ab1dd04338c605802b/enigmatoolbox/datasets/base.py#L293

if parcellation is 'aparc' causes SyntaxWarning: "is" with a literal. Did you mean "=="?

I think it could be easily solved by replacing "is" with "==".

saratheriver commented 5 months ago

Thanks for pointing it out! Fixed it for both load_fc, load_sc