[fluka-discuss]: error in cropping CT in Flair

From: Francesca Fiorini <francesca.fiorini_at_oncology.ox.ac.uk>
Date: Wed, 12 Nov 2014 09:48:27 +0000

Dear Vasilis and Fluka/Flair experts,

I am having problems trying to crop CT in Flair. I have done it other times, but now, after either the OS update or Flair update, it does not seem to work any more.
When I crop the CT and then go to the Voxel page, the "Analyzing slices" window doesn't start. Then when I close Flair, the Flair Error Reporting window appears and says:

Version : 2.0-5
geoviewer : 2.0-5 False
Revision : 3314
Last Change : 2014-10-20 14:11:03
dicom : 0.9.8
numpy : 1.8.2
Platform : linux2
Python : 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)]
TkVersion : 8.5
TclVersion : 8.5

Traceback (most recent call last):
  File "/usr/local/flair/tkFlair.py", line 1249, in __call__
    return self.func(*args)
  File "/usr/local/flair/FlairRibbon.py", line 294, in changeTab
  File "/usr/local/flair/VoxelTab.py", line 340, in activate
    if self.page.loadDicom():
  File "/usr/local/flair/DicomPage.py", line 253, in loadDicom
    err = self._loadDicom()
  File "/usr/local/flair/DicomPage.py", line 285, in _loadDicom
    if not self.dicom._scanSlice(os.path.join(path,fn)):
  File "/usr/local/flair/Dicom.py", line 717, in _scanSlice
  File "/usr/local/flair/Dicom.py", line 742, in __scanSliceData
    array = data[self.rowFrom:self.rowTo+1, self.colFrom:self.colTo+1]
IndexError: invalid slice

Do you know what the problem might be? Do I have something wrong with the python libraries?
The other times I used the cropping function, it was with the same CT, so I don't think there is something wrong with it.

Thanks in advance

Francesca Fiorini, PhD
CRUK and MRC Oxford Institute for Radiation Oncology
Old Road Campus Research Building
Off Roosevelt Drive
University of Oxford
Oxford, OX3 7DQ
Received on Wed Nov 12 2014 - 12:14:35 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 12 2014 - 12:14:37 CET