<s> """<STR_LIT>""" <EOL> import core . modules <EOL> import core . modules . module_registry <EOL> import core . modules . basic_modules as basic <EOL> from core . modules . vistrails_module import Module , ModuleError , new_module , IncompleteImplementation <EOL> import os <EOL> import subprocess <EOL> _teemPath = None <EOL> _teemLimnTestPath = None <EOL> _teemTenTestPath = None <EOL> identifier = '<STR_LIT>' <EOL> version = '<STR_LIT>' <EOL> name = '<STR_LIT>' <EOL> FileType = [ ( basic . File , '<STR_LIT>' ) ] <EOL> FloatType = [ ( basic . Float , '<STR_LIT>' ) ] <EOL> IntegerType = [ ( basic . Integer , '<STR_LIT>' ) ] <EOL> StringType = [ ( basic . String , '<STR_LIT>' ) ] <EOL> Vec3Type = [ ( basic . Float , '<STR_LIT:x>' ) , <EOL> ( basic . Float , '<STR_LIT:y>' ) , <EOL> ( basic . Float , '<STR_LIT:z>' ) ] <EOL> class Teem ( Module ) : <EOL> def run_at_path ( self , cmdline , path ) : <EOL> cmdline = path + cmdline <EOL> print cmdline <EOL> result = os . system ( cmdline ) <EOL> if result != <NUM_LIT:0> : <EOL> raise ModuleError ( self , '<STR_LIT>' % cmdline ) <EOL> def run_path ( self , * cmds ) : <EOL> cmdline = "<STR_LIT:U+0020>" . join ( [ str ( cmd ) for cmd in cmds ] ) <EOL> self . run_at_path ( cmdline , '<STR_LIT>' ) <EOL> def run_teem ( self , * cmds ) : <EOL> cmdline = "<STR_LIT:U+0020>" . join ( [ str ( cmd ) for cmd in cmds ] ) <EOL> self . run_at_path ( cmdline , _teemPath ) <EOL> def run_limn_test ( self , * cmds ) : <EOL> cmdline = "<STR_LIT:U+0020>" . join ( [ str ( cmd ) for cmd in cmds ] ) <EOL> self . run_at_path ( cmdline , _teemLimnTestPath ) <EOL> def run_ten_test ( self , * cmds ) : <EOL> cmdline = "<STR_LIT:U+0020>" . join ( [ str ( cmd ) for cmd in cmds ] ) <EOL> self . run_at_path ( cmdline , _teemTenTestPath ) <EOL> def opt_command_line_val ( self , option_name , port_name ) : <EOL> if self . has_input ( port_name ) : <EOL> return [ option_name , self . get_input ( port_name ) ] <EOL> else : <EOL> return [ ] <EOL> def opt_command_line_vec ( self , option_name , port_name ) : <EOL> if self . has_input ( port_name ) : <EOL> t = self . get_input ( port_name ) <EOL> return [ option_name ] + list ( t ) <EOL> else : <EOL> return [ ] <EOL> def opt_command_line_file ( self , option_name , port_name ) : <EOL> if self . has_input ( port_name ) : <EOL> t = self . get_input ( port_name ) <EOL> return [ option_name , t . name ] <EOL> else : <EOL> return [ ] <EOL> def opt_command_line_noopt ( self , option_name , port_name ) : <EOL> if self . has_input ( port_name ) : <EOL> return [ option_name ] <EOL> else : <EOL> return [ ] <EOL> _opt_dict = { '<STR_LIT:v>' : opt_command_line_val , <EOL> '<STR_LIT>' : opt_command_line_vec , <EOL> '<STR_LIT:f>' : opt_command_line_file , <EOL> '<STR_LIT:n>' : opt_command_line_noopt } <EOL> def process_command_line_input ( self ) : <EOL> cmdline = [ self . _cmdline_base ] <EOL> for ( opt_type , port_name , option_name ) in self . _cmdline_inputs : <EOL> call = self . _opt_dict [ opt_type ] <EOL> cmdline += call ( self , option_name = option_name , <EOL> port_name = port_name ) <EOL> return cmdline <EOL> def process_command_line_output ( self ) : <EOL> ( port_name , opt_name , format ) = self . _cmdline_output <EOL> if callable ( format ) : <EOL> format = format ( self ) <EOL> output_file = self . interpreter . filePool . create_file ( suffix = '<STR_LIT:.>' + format ) <EOL> self . set_output ( port_name , output_file ) <EOL> return [ opt_name , output_file . name ] <EOL> def compute ( self ) : <EOL> cmdline_input = self . process_command_line_input ( ) <EOL> cmdline_output = self . process_command_line_output ( ) <EOL> self . _cmdline_callable ( * ( cmdline_input + cmdline_output ) ) <EOL> class Emap ( Teem ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> output_file = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , output_file . name ] <EOL> self . run_teem ( * cmdline ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> _input_ports = [ ( '<STR_LIT>' , [ ] ) , <EOL> ( '<STR_LIT>' , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , Vec3Type ) ] <EOL> _output_ports = [ ( '<STR_LIT>' , [ ( basic . File , '<STR_LIT>' ) ] ) ] <EOL> class Soid ( Teem ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> elif self . has_input ( '<STR_LIT:A>' ) and self . has_input ( '<STR_LIT:B>' ) : <EOL> cmdline += [ '<STR_LIT>' , <EOL> self . get_input ( '<STR_LIT:A>' ) , <EOL> self . get_input ( '<STR_LIT:B>' ) ] <EOL> output_file = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , output_file . name ] <EOL> self . run_limn_test ( * cmdline ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> _input_ports = [ ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ] ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) , <EOL> ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT:A>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT:B>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> _output_ports = [ ( '<STR_LIT>' , [ ( basic . File , '<STR_LIT>' ) ] ) ] <EOL> class OffToEps ( Teem ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> input_file = self . get_input ( '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , input_file . name ] <EOL> output_file = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , output_file . name ] <EOL> self . run_limn_test ( * cmdline ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:3> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:5> ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class EpsToPpm ( Teem ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> cmdline += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> cmdline += [ self . get_input ( '<STR_LIT>' ) ] <EOL> cmdline += [ '<STR_LIT:>>' ] <EOL> output_file = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ output_file . name ] <EOL> self . run_path ( * cmdline ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class Unu ( Teem ) : <EOL> def do_output ( self ) : <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> suffix = '<STR_LIT:.>' + self . get_input ( '<STR_LIT>' ) <EOL> else : <EOL> suffix = '<STR_LIT>' <EOL> output_file = self . interpreter . filePool . create_file ( suffix = suffix ) <EOL> return ( [ '<STR_LIT>' , output_file . name ] , output_file ) <EOL> def do_input ( self ) : <EOL> self . check_input ( '<STR_LIT>' ) <EOL> return [ '<STR_LIT>' , self . get_input ( '<STR_LIT>' ) . name ] <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class UnuSave ( Unu ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> self . set_output ( "<STR_LIT>" , output_file . name ) <EOL> cmdline += ocmd <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , option_name = '<STR_LIT>' ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class UnuSwap ( Unu ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> v1 , v2 = self . get_input ( '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , str ( v1 ) , str ( v2 ) ] <EOL> cmdline += ocmd <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Integer , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ] <EOL> class UnuProject ( Unu ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> cmdline += ocmd <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) ) , <EOL> ] <EOL> class UnuMinmax ( Teem ) : <EOL> def do_input ( self ) : <EOL> self . check_input ( '<STR_LIT>' ) <EOL> return [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> cmdline += '<STR_LIT>' <EOL> output_file = self . interpreter . filePool . create_file ( ) <EOL> cmdline += [ '<STR_LIT>' % output_file . name ] <EOL> self . run_teem ( * cmdline ) <EOL> f = file ( output_file . name ) <EOL> try : <EOL> mn = float ( f . readline ( ) . split ( ) [ - <NUM_LIT:1> ] ) <EOL> mx = float ( f . readline ( ) . split ( ) [ - <NUM_LIT:1> ] ) <EOL> except : <EOL> raise ModuleError ( self , '<STR_LIT>' ) <EOL> self . set_output ( '<STR_LIT>' , ( mn , mx ) ) <EOL> _input_ports = [ ( '<STR_LIT>' , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ] ) ] <EOL> _output_ports = [ ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) ] <EOL> class UnuReshape ( Unu ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> cmdline += ocmd <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class UnuResample ( Unu ) : <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT:-c>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class UnuJoin ( Unu ) : <EOL> def do_input ( self ) : <EOL> self . check_input ( '<STR_LIT>' ) <EOL> return [ '<STR_LIT>' ] + [ x . name <EOL> for x in self . get_input ( '<STR_LIT>' ) ] <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . List , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Integer , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class UnuQuantize ( Unu ) : <EOL> def do_input ( self ) : <EOL> current = Unu . do_input ( self ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> return current + [ '<STR_LIT>' , self . get_input ( '<STR_LIT>' ) ] <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( port_name = '<STR_LIT>' , <EOL> option_name = '<STR_LIT>' ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( "<STR_LIT>" , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ( basic . Integer , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class Unu1op ( Unu ) : <EOL> def do_input ( self ) : <EOL> r = [ ] <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ '<STR_LIT>' , self . get_input ( '<STR_LIT>' ) . name ] <EOL> return r <EOL> def is_cacheable ( self ) : <EOL> return not self . get_input ( '<STR_LIT>' ) in [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def compute ( self ) : <EOL> allowed_ops = [ '<STR_LIT:->' , '<STR_LIT:r>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT:0>' , '<STR_LIT:1>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> if not self . get_input ( '<STR_LIT>' ) in allowed_ops : <EOL> raise ModuleError ( self , ( "<STR_LIT>" % <EOL> self . get_input ( '<STR_LIT>' ) ) ) <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += [ self . get_input ( '<STR_LIT>' ) ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( '<STR_LIT>' , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class Unu2op ( Unu ) : <EOL> def do_input ( self ) : <EOL> r = [ ] <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> elif self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) ] <EOL> else : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> elif self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) ] <EOL> else : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> return r <EOL> def compute ( self ) : <EOL> allowed_ops = [ '<STR_LIT:+>' , '<STR_LIT:->' , '<STR_LIT:x>' , '<STR_LIT:/>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:%>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> if not self . get_input ( '<STR_LIT>' ) in allowed_ops : <EOL> raise ModuleError ( self , ( "<STR_LIT>" % <EOL> self . get_input ( '<STR_LIT>' ) ) ) <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += [ self . get_input ( '<STR_LIT>' ) ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( '<STR_LIT>' , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class Unu3op ( Unu ) : <EOL> def do_input ( self ) : <EOL> r = [ ] <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> elif self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) ] <EOL> else : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> elif self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) ] <EOL> else : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> if self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) . name ] <EOL> elif self . has_input ( '<STR_LIT>' ) : <EOL> r += [ self . get_input ( '<STR_LIT>' ) ] <EOL> else : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> return r <EOL> def compute ( self ) : <EOL> allowed_ops = [ '<STR_LIT:+>' , '<STR_LIT:x>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> if not self . get_input ( '<STR_LIT>' ) in allowed_ops : <EOL> raise ModuleError ( self , ( "<STR_LIT>" % <EOL> self . get_input ( '<STR_LIT>' ) ) ) <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += [ self . get_input ( '<STR_LIT>' ) ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( '<STR_LIT>' , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ] <EOL> class Teem_TT ( Teem ) : <EOL> _cmdline_base = '<STR_LIT>' <EOL> _cmdline_inputs = [ ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:location>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:n>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:n>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> _cmdline_output = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> _cmdline_callable = Teem . run_ten_test <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT:location>" , Vec3Type ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , "<STR_LIT>" ) ] ) , <EOL> ] <EOL> class Tend_norm ( Teem ) : <EOL> _cmdline_base = '<STR_LIT>' <EOL> _cmdline_inputs = [ ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT:target>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:f>' , '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> _cmdline_output = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> _cmdline_callable = Teem . run_teem <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , Vec3Type ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , "<STR_LIT>" ) ] ) , <EOL> ( "<STR_LIT:target>" , [ ( basic . Float , "<STR_LIT>" ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , "<STR_LIT>" ) ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , "<STR_LIT>" ) ] ) , <EOL> ] <EOL> class Tend_glyph ( Teem ) : <EOL> _cmdline_base = '<STR_LIT>' <EOL> _cmdline_inputs = [ ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:f>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:f>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:n>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:n>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:n>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:v>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> _cmdline_output = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> _cmdline_callable = Teem . run_teem <EOL> _input_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . Float , "<STR_LIT>" ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:3> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:3> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . String , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Integer , '<STR_LIT>' ) ] ) , <EOL> ( "<STR_LIT>" , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:3> ) , <EOL> ( "<STR_LIT>" , [ ] ) , <EOL> ] <EOL> _output_ports = [ <EOL> ( "<STR_LIT>" , [ ( basic . File , '<STR_LIT>' ) ] ) <EOL> ] <EOL> class UnuSlice ( Unu ) : <EOL> def do_input ( self ) : <EOL> r = [ ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> r += [ '<STR_LIT>' , self . get_input ( '<STR_LIT>' ) . name ] <EOL> r += [ '<STR_LIT>' , str ( self . get_input ( '<STR_LIT>' ) ) ] <EOL> r += [ '<STR_LIT>' , str ( self . get_input ( '<STR_LIT>' ) ) ] <EOL> return r <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> cmdline += self . do_input ( ) <EOL> ( ocmd , output_file ) = self . do_output ( ) <EOL> cmdline += ocmd <EOL> self . set_output ( '<STR_LIT>' , output_file ) <EOL> self . run_teem ( * cmdline ) <EOL> _input_ports = [ <EOL> ( '<STR_LIT>' , basic . File ) , <EOL> ( '<STR_LIT>' , basic . Integer ) , <EOL> ( '<STR_LIT>' , basic . Integer ) , <EOL> ] <EOL> class TeemScaledTransferFunction ( Teem ) : <EOL> _input_ports = [ ( '<STR_LIT>' , [ ( basic . Float , '<STR_LIT>' ) ] * <NUM_LIT:2> ) , <EOL> ( '<STR_LIT>' , [ basic . Integer ] ) ] <EOL> _output_ports = [ ( '<STR_LIT>' , [ ( basic . File , '<STR_LIT>' ) ] ) ] <EOL> def compute ( self ) : <EOL> ramp = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> tf_vals = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> output = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> steps = self . get_input ( '<STR_LIT>' ) <EOL> rng = self . get_input ( '<STR_LIT>' ) <EOL> self . run_teem ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' % steps , <EOL> '<STR_LIT>' % ramp . name ) <EOL> tf_file = file ( tf_vals . name , '<STR_LIT:w>' ) <EOL> tf = self . get_input ( '<STR_LIT>' ) <EOL> for ( scalar , op , ( r , g , b ) ) in tf . _pts : <EOL> tf_file . write ( '<STR_LIT>' % ( scalar , r , g , b , op ) ) <EOL> tf_file . close ( ) <EOL> self . run_teem ( '<STR_LIT>' % tf_vals . name , <EOL> '<STR_LIT>' % len ( tf . _pts ) , <EOL> '<STR_LIT>' % ramp . name , <EOL> '<STR_LIT>' % steps , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' % ( rng [ <NUM_LIT:0> ] , <EOL> rng [ <NUM_LIT:1> ] , <EOL> output . name ) ) <EOL> self . set_output ( '<STR_LIT>' , output ) <EOL> class Miter ( Teem ) : <EOL> _input_ports = [ <EOL> ( '<STR_LIT>' , FileType ) , <EOL> ( '<STR_LIT>' , FileType ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , [ ] ) , <EOL> ( '<STR_LIT>' , [ ] ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType * <NUM_LIT:2> ) , <EOL> ( '<STR_LIT>' , FloatType * <NUM_LIT:2> ) , <EOL> ( '<STR_LIT>' , IntegerType * <NUM_LIT:2> ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , FloatType * <NUM_LIT:3> ) , <EOL> ( '<STR_LIT>' , FloatType * <NUM_LIT:3> ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , StringType ) , <EOL> ( '<STR_LIT>' , StringType ) , <EOL> ( '<STR_LIT>' , StringType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , IntegerType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ] <EOL> _output_ports = [ ( '<STR_LIT>' , FileType ) ] <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> self . check_input ( '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> f = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , f . name ] <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_noopt ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . set_output ( '<STR_LIT>' , f ) <EOL> self . run_teem ( * cmdline ) <EOL> class OverRGB ( Teem ) : <EOL> _input_ports = [ <EOL> ( '<STR_LIT>' , FileType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , FloatType ) , <EOL> ( '<STR_LIT>' , Vec3Type ) , <EOL> ( '<STR_LIT>' , FileType ) , ] <EOL> _output_ports = [ <EOL> ( '<STR_LIT>' , FileType ) , <EOL> ] <EOL> def compute ( self ) : <EOL> cmdline = [ '<STR_LIT>' ] <EOL> self . check_input ( '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> f = self . interpreter . filePool . create_file ( suffix = '<STR_LIT>' ) <EOL> cmdline += [ '<STR_LIT>' , f . name ] <EOL> self . set_output ( '<STR_LIT>' , f ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT:-c>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_val ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_vec ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmdline += self . opt_command_line_file ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . run_teem ( * cmdline ) <EOL> _modules = [ Teem , Emap , Soid , Miter , OverRGB , <EOL> OffToEps , <EOL> EpsToPpm , <EOL> Unu , <EOL> UnuMinmax , <EOL> UnuSave , <EOL> UnuSwap , <EOL> UnuProject , <EOL> UnuReshape , <EOL> UnuResample , <EOL> UnuJoin , <EOL> UnuQuantize , <EOL> Unu1op , <EOL> Unu2op , <EOL> Unu3op , <EOL> UnuSlice , <EOL> Teem_TT , <EOL> Tend_norm , <EOL> Tend_glyph ] <EOL> def package_dependencies ( ) : <EOL> import core . packagemanager <EOL> manager = core . packagemanager . get_package_manager ( ) <EOL> if manager . has_package ( '<STR_LIT>' ) : <EOL> return [ '<STR_LIT>' ] <EOL> else : <EOL> return [ ] <EOL> def initialize ( path = None , limnTestPath = None , tenTestPath = None , <EOL> * args , ** keywords ) : <EOL> global _teemPath <EOL> if not path : <EOL> print "<STR_LIT>" <EOL> _teemPath = "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" , path <EOL> _teemPath = path + '<STR_LIT:/>' <EOL> global _teemLimnTestPath <EOL> if not limnTestPath : <EOL> print "<STR_LIT>" , <EOL> print "<STR_LIT>" <EOL> _teemLimnTestPath = "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" , limnTestPath <EOL> _teemLimnTestPath = limnTestPath + '<STR_LIT:/>' <EOL> global _teemTenTestPath <EOL> if not tenTestPath : <EOL> print "<STR_LIT>" , <EOL> print "<STR_LIT>" <EOL> _teemTenTestPath = "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" , tenTestPath <EOL> _teemTenTestPath = tenTestPath + '<STR_LIT:/>' <EOL> reg = core . modules . module_registry . registry <EOL> if reg . has_module ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) : <EOL> _modules . append ( TeemScaledTransferFunction ) <EOL> TF = reg . get_descriptor_by_name ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) . module <EOL> TeemScaledTransferFunction . _input_ports . append ( ( '<STR_LIT>' , [ ( TF , <EOL> "<STR_LIT>" ) ] ) ) </s>
