fhcrc / nestly

Make and use nested directory trees corresponding to combinatorial choices of parameters
http://nestly.readthedocs.org
MIT License
21 stars 2 forks source link

nestly.scons.name_targets could be improved with func_name #19

Open metasoarous opened 11 years ago

metasoarous commented 11 years ago

From the docs:

name_targets() does not preserve the name of the decorated function, so the name of the target must be provided as a parameter to add_target().

This can be avoided by assigning wrap.func_name = func.func_name in the name_targets source.

cmccoy commented 11 years ago

Sure. (might try functools.wraps

On Fri, Oct 4, 2013 at 2:40 PM, Christopher Small notifications@github.comwrote:

From the docs:

name_targets() does not preserve the name of the decorated function, so the name of the target must be provided as a parameter to add_target().

This can be avoided by assigning wrap.func_name = func.func_name in the name_targets source.

— Reply to this email directly or view it on GitHubhttps://github.com/fhcrc/nestly/issues/19 .

Connor McCoy Fred Hutchinson Cancer Research Center 1100 Fairview Ave N. Seattle, WA 98109-1924 cmccoy@fhcrc.org