yves-weissenberger / twoptb

Python toolbox for analysing data from two photon imaging experiments
0 stars 1 forks source link

ROI drawer gives error during trace extraction, then crashes #8

Closed samupicard closed 6 years ago

samupicard commented 6 years ago

Traceback (most recent call last):
File "Documents\twoptb\ROIs\PyQtGraph_ROI_Drawer.py", line 572, in buttonClicked self._extract_trace(i)
File "Documents\twoptb\ROIs\PyQtGraph_ROI_Drawer.py", line 597, in _extract_trace temp = areaFile[:,yLims[0]:yLims[1],xLims[0]:xLims[1]] *self.ROI_attrs['masks'][idx]
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1474482483473\work\h5py_objects.c:2705) File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1474482483473\work\h5py_objects.c:2663) File "C:\Users\mert3628\Anaconda2\lib\site-packages\h5py_hl\dataset.py", line 462, in getitem selection = sel.select(self.shape, args, dsid=self.id)
File "C:\Users\mert3628\Anaconda2\lib\site-packages\h5py_hl\selections.py", line 92, in select sel[args]
File "C:\Users\mert3628\Anaconda2\lib\site-packages\h5py_hl\selections.py", line 259, in getitem start, count, step, scalar = _handle_simple(self.shape,args)
File "C:\Users\mert3628\Anaconda2\lib\site-packages\h5py_hl\selections.py", line 443, in _handle_simple x,y,z = _translate_slice(arg, length)
File "C:\Users\mert3628\Anaconda2\lib\site-packages\h5py_hl\selections.py", line 484, in _translate_slice raise ValueError("Reverse-order selections are not allowed")
ValueError: Reverse-order selections are not allowed

yves-weissenberger commented 6 years ago

problem was caused by ROIs being drawn out of bounds. This option has been disabled now