PiRSquared17 / dicompyler

Automatically exported from code.google.com/p/dicompyler
0 stars 0 forks source link

2D View labels disappear if slice is out of bounds of dose matrix #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Scroll to a slice outside of the dose matrix

What is the expected output? What do you see instead?
The labels should stay on the 2D image. However, they disappear since the 
drawing pipeline gets disrupted since the dose matrix does not exist on the 
slice.

As soon as you scroll back to a slice where the dose matrix exists, the labels 
are restored.

This should be able to be fixed by checking whether the matrix exists before 
starting the drawing pipeline.

Original issue reported on code.google.com by bastula on 6 Oct 2010 at 10:55

GoogleCodeExporter commented 9 years ago
Here is the traceback:

Traceback (most recent call last):
      File "/Users/apanchal/Projects/python/dicompyler/baseplugins/2dview.py", line 368, in OnPaint
        self.DrawIsodose(isodose, gc, self.imagenum)
      File "/Users/apanchal/Projects/python/dicompyler/baseplugins/2dview.py", line 219, in DrawIsodose
        contour = self.dose.GetIsodoseGrid(imagenum, level)
      File "dicomparser.pyo", line 361, in GetIsodoseGrid
    IndexError: index out of bounds

Original comment by bastula on 6 Oct 2010 at 10:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 27a20da390.

Original comment by bastula on 29 Nov 2010 at 8:07