cosanlab / nltools

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

create_sphere() probelm #357

Open Forrestwang1 opened 4 years ago

Forrestwang1 commented 4 years ago

Hi all, I tried to use this function to make a mask, my understanding is I can put a list of centers but I got some error. The below is example code, when running the code, I got the error. 'AttributeError: '_io.BytesIO' object has no attribute 'mode' any suggestion? Thanks~

`from nltools.mask import create_sphere

mask = create_sphere([[-36,-56,-18],[0,0,0]], radius=3)`

ljchang commented 3 years ago

Hi @Forrestwang1, sorry I missed this. Can you share what version of nltools you are using? and the type of computer you are using? Your code works on my mac running nltools 0.4.2.

ejolly commented 3 years ago

Related to #365