Project

General

Profile

Actions

Bug #1863

closed

Sprint #1835: Sprint20210825

Sprint #1836: Autoregistration

Sprint #1837: Bug Fixing

PET Transect out of range

Added by Joshua Thomas over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Joshua Thomas
Start date:
02/09/2021
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Summary

Transect function crashes for PET scans

Steps to Reproduce

  1. Open a Pet Scan
  2. Click Transect
  3. 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 #1

Updated by Joshua Thomas over 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #2

Updated by Peter Qian over 3 years ago

  • Assignee set to Joshua Thomas
Actions

Also available in: Atom PDF