Statistics and Missing.Value...
When attempting to format Summary Statistics data with Missing.Value(s), Missing.Value apparently has an incorrect type required for the numeric format operations : <!-- Error type: Error value: illegal argument type for built-in operation --> File /usr/pkg/zope/lib/python/Shared/Endicor/Tables/Mining.py, line 259, in summary_table_html File /usr/pkg/zope/lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: <string>) File /usr/pkg/zope/lib/python/DocumentTemplate/DT_In.py, line 683, in renderwob (Object: data()) File /usr/pkg/zope/lib/python/DocumentTemplate/DT_Var.py, line 271, in render (Object: max-PNTR) (Info: ('max-PNTR', None, {'fmt': '%d', '': 'max-PNTR'})) TypeError: (see above) So my Summary Statistics method is expecting to format a numeric value for 'max-PNTR' but it fails because the value isn't a number. Any Suggestions? Thanks
On 16 Jul 1999 21:41:50 GMT, Kent Polk wrote:
When attempting to format Summary Statistics data with Missing.Value(s), Missing.Value apparently has an incorrect type required for the numeric format operations :
<!-- Error type: Error value: illegal argument type for built-in operation -->
Ok. This looks like it might be a fix. The problem was that max wasn't being tested for Missing.Value so was not being handled properly. This appears to fix the problem (in Zope2) : $Id: DT_InSV.py,v 1.11 1999/06/21 21:29:53 jim Exp $''' 238a239
if item is mv: item = None
Kent Polk
participants (1)
-
kent@tiamat.goathill.org