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~
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.
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)`