[Scons-users] Builder Arguments: **kwargs?
Dmitry Mikhin
dmitry.mikhin at gmail.com
Tue Jul 31 08:49:05 EDT 2012
Can you pass the name of the desired dataset as a second source of Value type?
Just a suggestion, I use this approach when need to pass some
numerical value to the builder. Very similar tasks, such as extract
data for a given value, or generate a file from a template file and
the parameter value, etc.
Dmitry
> Bill, inside my actions I am making plots with matplotlib, generating png
> images, etc. The actions are python functions, not system calls. The
> arguments would include things like the hdf5 dataset name, a particular
> slice of the larger dataset to plot, axis labels, etc.
>
> Without arguments, I can make a slew of builders, each with specific values
> for each of these parameters. That works, but is not exactly elegant. For
> instance, I currently plot a series of identical images, except that each
> one is a different slice of the dataset. One argument, specifying the
> slice, would reduce the number of builders required to one, instead of a
> completely separate builder for each slice. The builders are literally
> identical, except for one parameter.
>
> I know I am (ab)using scons to work outside it's original design concept It
> really almost works for this purpose though, if it just supported action
> arguments.
More information about the Scons-users
mailing list