Actions
Bug #1863
closedSprint #1835: Sprint20210825
Sprint #1836: Autoregistration
Sprint #1837: Bug Fixing
PET Transect out of range
Status:
Closed
Priority:
Normal
Assignee:
Joshua Thomas
Description
Summary¶
Transect function crashes for PET scans
Steps to Reproduce¶
- Open a Pet Scan
- Click Transect
- Draw a line
Expected Results¶
Opens a plot of the transect
Actual Results¶
If the transect is completely in the upper left of the screen, it executes, otherwise:
Program exits with an out of bounds error
Additional Information¶
The default window
<class 'IndexError'> index 269 is out of bounds for axis 0 with size 256 <traceback object at 0x7f00bb81ec80>
Traceback (most recent call last):
File "/home/josh/OnkoDICOM/src/Controller/MainPageController.py", line 957, in mouseReleaseEvent
self.draw_dda(round(self.pos1.x()), round(self.pos1.y()),
File "/home/josh/OnkoDICOM/src/Controller/MainPageController.py", line 978, in draw_dda
self.get_values()
File "/home/josh/OnkoDICOM/src/Controller/MainPageController.py", line 993, in get_values
self.values.append(self.data[i][j])
IndexError: index 269 is out of bounds for axis 0 with size 256
Actions