nltools icon indicating copy to clipboard operation
nltools copied to clipboard

create_sphere() probelm

Open Forrestwang1 opened this issue 5 years ago • 2 comments

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

Forrestwang1 avatar Jun 26 '20 01:06 Forrestwang1

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.

ljchang avatar Oct 14 '20 13:10 ljchang

Related to #365

ejolly avatar Mar 16 '21 21:03 ejolly