00001 __copyright__ = """
00002 Copyright 2008 Sean Ross-Ross
00003 """
00004 __license__ = """
00005 This file is part of SLIMpy .
00006
00007 SLIMpy is free software: you can redistribute it and/or modify
00008 it under the terms of the GNU Lesser General Public License as published by
00009 the Free Software Foundation, either version 3 of the License, or
00010 (at your option) any later version.
00011
00012 SLIMpy is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015 GNU Lesser General Public License for more details.
00016
00017 You should have received a copy of the GNU Lesser General Public License
00018 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00019 """
00020
00021 def mk2( g ):
00022
00023 g.appendEdge( "socks", "shoes" )
00024 g.appendEdge( "undershorts", "socks" )
00025 g.appendEdge( "undershorts", "pants" )
00026 g.appendEdge( "pants", "shoes" )
00027 g.appendEdge( "pants", "jacket" )
00028 g.appendEdge( "pants", "belt" )
00029 g.appendEdge( "shirt", "belt" )
00030 g.appendEdge( "shirt", "tie" )
00031 g.appendEdge( "belt", "jacket" )
00032 g.appendEdge( "tie", "jacket" )
00033 return g
00034
00035 def mk3( g ):
00036 g.appendEdge( 'd1', 'c1' , True, 'red' )
00037 g.appendEdge( 'c1', 'd2' , True, 'green' )
00038 g.appendEdge( 'd1', 'c2' , True, 'red' )
00039 g.appendEdge( 'c2', 'd3' , True, 'green' )
00040 g.appendEdge( 'd2', 'c3' , True, 'red' )
00041 g.appendEdge( 'd3', 'c3' , False, 'red' )
00042 g.appendEdge( 'c3', 'd4' , True, 'green' )
00043 g.setBuildTargets( 'd4' )
00044 return g
00045
00046
00047
00048 def mk3cycle( g ):
00049 g.appendEdge( 'data', 'fdct' , True, 'red' )
00050 g.appendEdge( 'fdct', 'sizes' , False, 'green' )
00051 g.appendEdge( 'sizes', 'fdctInv' , False, 'red' )
00052 g.appendEdge( 'fdct', 'newdata' , True, 'green' )
00053 g.appendEdge( 'newdata', 'fdctInv' , True, 'red' )
00054 g.appendEdge( 'fdctInv', 'final' , True, 'green' )
00055 g.setBuildTargets( 'final' )
00056 return g
00057
00058
00059 def lw1( g ):
00060 """
00061 None < ['sfmath output=0 n2=10 type=complex n1=6', 'sfput n1_fft=10'] > tmp.cMLwY2.rsf
00062 tmp.cMLwY2.rsf < ['sffft1 opt=n inv=y sym=y', 'sffft1 opt=n inv=n sym=y'] > tmp.MXrCe6.rsf
00063 None < ['sfmath output=0 n2=10 type=float n1=10', 'sfput ', 'sffft1 opt=n inv=n sym=y', 'sfmath output="input-vec" vec=tmp.MXrCe6.rsf', 'sfmath output="vec+input" vec=tmp.cMLwY2.rsf', 'sfthr mode=soft thr=0.007'] > x.rsf
00064 """
00065 g.appendEdge ( "sfput ID:20193104" , "KfiGxq" , True , "green" )
00066 g.appendEdge ( "sfmath output='input-vec' vec=MXrCe6 ID:20213968" , "S1CVC3" , True , "green" )
00067 g.appendEdge ( "sfmath output=0 n2=10 type=float n1=10 ID:20193136" , "sfput ID:20193104" , True , "green" )
00068 g.appendEdge ( "sfmath output='vec+input' vec=cMLwY2 ID:20217232" , "RFL5yr" , True , "green" )
00069 g.appendEdge ( "sffft1 opt=n inv=n sym=y ID:20217264" , "G820lD" , True , "green" )
00070 g.appendEdge ( "sfthr mode=soft thr=0.007 ID:20217808" , "x" , True , "green" )
00071 g.appendEdge ( "sfput n1_fft=10 ID:20217424" , "cMLwY2" , True , "green" )
00072 g.appendEdge ( "sfmath output=0 n2=10 type=complex n1=6 ID:20217456" , "sfput n1_fft=10 ID:20217424" , True , "green" )
00073 g.appendEdge ( "sffft1 opt=n inv=y sym=y ID:20217584" , "m6XWZK" , True , "green" )
00074 g.appendEdge ( "sffft1 opt=n inv=n sym=y ID:20217648" , "MXrCe6" , True , "green" )
00075
00076
00077 g.appendEdge ( "m6XWZK" , "sffft1 opt=n inv=n sym=y ID:20217648" , True )
00078 g.appendEdge ( "G820lD" , "sfmath output='input-vec' vec=MXrCe6 ID:20213968" , True )
00079 g.appendEdge ( "KfiGxq" , "sffft1 opt=n inv=n sym=y ID:20217264" , True )
00080 g.appendEdge ( "cMLwY2" , "sffft1 opt=n inv=y sym=y ID:20217584" , True )
00081 g.appendEdge ( "cMLwY2" , "sfmath output='vec+input' vec=cMLwY2 ID:20217232" , False )
00082 g.appendEdge ( "MXrCe6" , "sfmath output='input-vec' vec=MXrCe6 ID:20213968" , False )
00083 g.appendEdge ( "RFL5yr" , "sfthr mode=soft thr=0.007 ID:20217808" , True )
00084 g.appendEdge ( "S1CVC3" , "sfmath output='vec+input' vec=cMLwY2 ID:20217232" , True )
00085
00086 g.setBuildTargets( "x" )
00087
00088
00089
00090
00091
00092
00093