scons view scons dottest
from slimproj import *
slimproj is the SLIMpy SCons integration package. Hopefully you are familiar with the Madagascar pacage
from rsfproj import * Flow( 'sig', None , "sigmoid n1=256 n2=256" ) Flow( 'data', 'sig' , "noise var=0.0002" )
This code does the same as in the previous example and creates the sigmoid synthetic model and data.
@slim_builder_simple def SwellSeparation( vectors, thr=0.001 ):
Here I define the body of the code in the function SurfaceletDeNoise. SurfaceletDeNoise is a special function because it has the slim_builder_simple decorator above it. This turns the function into a SCons Builder object. The body of the code is defined the same as the previous example.
res = SwellSeparation( 'enoise', data , thr=0.001 )
In this case the first parameter A is the cosine transform and the second two parameters are the precision of a pass or fail and the number of noise realizations to test.