/usr/lib/openturns/examples/PyNMF.py is in openturns-examples 0.15-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #! /usr/bin/env python
import openturns
class FUNC(openturns.OpenTURNSPythonFunction):
def __init__(self):
openturns.OpenTURNSPythonFunction.__init__(self, 2, 1)
self.setInputDescription( ['R','S'] )
self.setOutputDescription( ['T'] )
def _exec(self, X):
return [ X[0] + X[1] ]
|