qkitgroup / qkit

Qkit framework
GNU General Public License v2.0
43 stars 46 forks source link

Qviewkit automatically closes for 2D time domain data #44

Closed TimWolz closed 6 years ago

TimWolz commented 6 years ago

I can't display my 2d time domain data with qviewkit. When I click on amplitude or phase in the gui. The plot window shortly opens but then the complete qui closes...

Schneider1 commented 6 years ago

Please provide a traceback from command line or a sample file.

TimWolz commented 6 years ago

There you go P83GHM_time.zip

TimWolz commented 6 years ago

and Traceback:

from ._conv import register_converters as _register_converters Traceback (most recent call last): File "C:\ProgramData\Anaconda2\lib\site-packages\pyqtgraph\imageview\ImageView.py", line 567, in roiChanged data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True) File "C:\ProgramData\Anaconda2\lib\site-packages\pyqtgraph\graphicsItems\ROI.py", line 1110, in getArrayRegion result, coords = fn.affineSlice(data, shape=shape, vectors=vectors, origin=origin, axes=axes, **kwds) File "C:\ProgramData\Anaconda2\lib\site-packages\pyqtgraph\functions.py", line 491, in affineSlice grid = np.mgrid[tuple([slice(0,x) for x in shape])] ## mesh grid of indexes File "C:\ProgramData\Anaconda2\lib\site-packages\numpy\lib\index_tricks.py", line 187, in getitem nn = _nx.indices(size, typ) File "C:\ProgramData\Anaconda2\lib\site-packages\numpy\core\numeric.py", line 1853, in indices res = empty((N,)+dimensions, dtype=dtype) MemoryError

fr34q commented 6 years ago

I had the same issue (the one I mentioned in the dev meeting)

As far as I remember it occurred both on Linux and Windows

mpfirrmann commented 6 years ago

I can confirm the issue on my office computer in the master branch. The file opens in the qvk_2 branch where we work on qviewkit but I don't know (yet?) why this is no issue there. I've had some troubles with pyqtgraph's ROI in the past, IDK if we need this in qviewkit at all.