Mercurial > hg > libxtract
annotate swig/python/test.py @ 88:525bfdf936c6
Added java bindings. Everything seems to work OK, except test.java won't compile. Some kind of path error, but I can't work out how to fix it.
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Wed, 05 Sep 2007 14:32:17 +0000 |
parents | |
children | 35a3bb5c3ffd |
rev | line source |
---|---|
jamie@88 | 1 #!/usr/bin/python |
jamie@88 | 2 |
jamie@88 | 3 import xtract |
jamie@88 | 4 |
jamie@88 | 5 len = 5 |
jamie@88 | 6 |
jamie@88 | 7 a = xtract.floatArray(len) |
jamie@88 | 8 |
jamie@88 | 9 for i in range(0, len): |
jamie@88 | 10 a[i] = 2 * i |
jamie@88 | 11 |
jamie@88 | 12 retval,result = xtract.xtract_mean(a,len,None) |
jamie@88 | 13 |
jamie@88 | 14 print result |
jamie@88 | 15 |