def compute(self):
        allowed_ops = ['+', 'x',
                       'min', 'max',
                       'clamp', 'ifelse',
                       'lerp', 'exists',
                       'in_op', 'in_cl']
        self.check_input('op')
        if not self.get_input('op') in allowed_ops:
            raise ModuleError(self, ("Operation %s is not allowed." % 
                                     self.get_input('op')))
        cmdline = ['unu 3op']
        cmdline += [self.get_input('op')]
        cmdline += self.do_input()
        (ocmd, output_file) = self.do_output()
        cmdline += ocmd
        self.set_output('output_file', output_file)
        self.run_teem(*cmdline)
dataset/ETHPy150Open VisTrails/VisTrails/contrib/edu_utah_sci_cscheid_teem/__init__.py/Unu3op.compute/original