cosanlab / nltools

Python toolbox for analyzing imaging data
https://nltools.org
MIT License
120 stars 42 forks source link

Brain_Data class in Python 3.8 #365

Closed esfinn closed 9 months ago

esfinn commented 3 years ago

Since upgrading to Python 3.8 I get a cryptic error AttributeError: ‘_io.BytesIO’ object has no attribute ‘mode’ anytime I am working with Brain_Data. I am able to load data in as a Brain_Data object, but any kind of method/operation on it fails with that same error (e.g., .filter, .smooth, and .to_nifti()). Pretty sure Python version is the issue since it still works fine in environments with 3.7.

ljchang commented 9 months ago

hopefully, this issue is now resolved.