in fact the error is the following :


Traceback (most recent call last):


File 
"C:\ProgramData\Anaconda3\lib\site-packages\pyqtgraph\graphicsItems\ImageItem.py",
 
line 411, in paint

self.render()


File 
"C:\ProgramData\Anaconda3\lib\site-packages\pyqtgraph\graphicsItems\ImageItem.py",
 
line 403, in render

argb, alpha = fn.makeARGB(image, lut=lut, levels=levels)


File "C:\ProgramData\Anaconda3\lib\site-packages\pyqtgraph\functions.py", 
line 1013, in makeARGB

data = rescaleData(data, scale/(maxVal-minVal), minVal, dtype=dtype)


File "C:\ProgramData\Anaconda3\lib\site-packages\pyqtgraph\functions.py", 
line 877, in rescaleData

d2 = np.clip(d2, lim.min, lim.max)


File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", 
line 1958, in clip

return _wrapfunc(a, 'clip', a_min, a_max, out=out)


File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", 
line 56, in _wrapfunc

return getattr(obj, method)(*args, **kwds)


MemoryError





Le samedi 26 octobre 2019 16:30:13 UTC+2, Julien Gautier a écrit :
>
> hi
>
> I have sometime a memory error when i using setImage
> this is an example of my code :
>
> self.Image=pg.GrraphicsLayoutWidget()
> self.p1=self.winImage.addPlot()
> self.imh=pg.ImageItem()
> self.p1.addItem(self.imh)
>
> while true :
>
> self.imh.setImage(data.astype(float),autoLevels=True,autoDownsample=True)
>
>
>
>
> and the error:
> MemoryERROR: 
> traceback(....)
> file "./pyqtgraph/graphicsItems/ImageItem" , inn paint
> self.render() 
>
>
> Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/349ae542-471b-4982-a412-fdaca045a6c0%40googlegroups.com.

Reply via email to