[Thuban-list] Thuban CVS version: cannot classify on incomplete data - unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Moritz Lennert
mlennert at club.worldonline.be
Tue Mar 23 15:43:24 CET 2004
Hello,
I am using the current CVS version.
I have a shapefile (and dbf file) with 589 entities and a data table with
data for 129 of these entities. I can join the two tables using an
external join. The result seems coherent with most lines in grey (no data)
and the 129 lines with data.
However, when I choose one of the incomplete fields and hit the "Generate
classes" button, I get the following error
Une exception non gérée a été déclenchée:
unsupported operand type(s) for -: 'NoneType' and 'NoneType'
(veuillez faire un rapport à l'adresse
http://thuban.intevation.org/bugtracker.html)
Traceback (most recent call last):
File "/usr/lib/thuban/Thuban/UI/classifier.py", line 1075, in _OnGenClass
self.fields.GetString(self.__cur_field))
File "/usr/lib/thuban/Thuban/UI/classgen.py", line 125, in __init__
obj = clazz(self, self.layer, self.fieldName, self.fieldType)
File "/usr/lib/thuban/Thuban/UI/classgen.py", line 1008, in __init__
self.datashow = PointDensityGram(self, data=curdata)
File "/usr/lib/thuban/Thuban/UI/graph.py", line 50, in __init__
self.data = [ (d-mnd)/(mxd-mnd) for d in data ]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
As this is one of the first attempts of one of my colleagues to use Thuban
in production, I would really like to find the answer to this problem.
Moritz
More information about the Thuban-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)