Module: Mesa Branch: master Commit: f784906eb96ccda2062b53867a5d4bc52653396d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f784906eb96ccda2062b53867a5d4bc52653396d
Author: José Fonseca <jfons...@vmware.com> Date: Tue Mar 31 18:38:48 2009 +0100 python/test: Dump classification tree to text file too. --- src/gallium/state_trackers/python/tests/base.py | 2 ++ src/gallium/state_trackers/python/tests/tree.py | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/python/tests/base.py b/src/gallium/state_trackers/python/tests/base.py index 6b2e702..1fa7fe6 100755 --- a/src/gallium/state_trackers/python/tests/base.py +++ b/src/gallium/state_trackers/python/tests/base.py @@ -331,4 +331,6 @@ class TestResult: orngTree.printTxt(tree, maxDepth=4) + file(name+'.txt', 'wt').write(orngTree.dumpTree(tree)) + orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box') diff --git a/src/gallium/state_trackers/python/tests/tree.py b/src/gallium/state_trackers/python/tests/tree.py index 14b3599..0c1bcda 100755 --- a/src/gallium/state_trackers/python/tests/tree.py +++ b/src/gallium/state_trackers/python/tests/tree.py @@ -18,4 +18,6 @@ for arg in sys.argv[1:]: orngTree.printTxt(tree) + file(name+'.txt', 'wt').write(orngTree.dumpTree(tree) + '\n') + orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box') _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit