Using the IEvaluator with a function on a column fails.
example:
File "/nfs/slac/g/lcd/mc/prj/sw/extern/python2.4/lib/python2.4/site-packages/paida/paida_core/ITuple.py", line 282, in project
histogramFill(evaluatDoubleX())
File "/nfs/slac/g/lcd/mc/prj/sw/extern/python2.4/lib/python2.4/site-packages/paida/paida_core/IEvaluator.py", line 26, in evaluateDouble
return float(eval(self._code, self._globals, {'_row': self._tupleRows[self._tupleObject._rowIndex]}))
File "IEvaluator.py", line 0, in ?
NameError: name 'sqrt' is not defined
In this case I tried to make a new column from existing columns using sqrt.
This is possible in JAIDA and JAS, and it should be possible by just importing everything from math into IEvaluator.
Cheers,
Jan
Logged In: YES
user_id=1366327
Originator: YES
The following patch fixes this.
Index: paida/paida_core/IEvaluator.py
RCS file: /cvsroot/paida/paida/paida/paida_core/IEvaluator.py,v
retrieving revision 1.6
diff -r1.6 IEvaluator.py
2a3
> from math import *
Logged In: YES
user_id=734761
Originator: NO
I've fixed and checked new IEvaluator.py file into CVS.
Thanks, Jan!