Tuesday, March 2, 2010

ompc

wow, wow, wow... a prophylactic barrier between me and matlab. sorry for the imagery, but i'm just so tired of being forced to deal with matlab by legacy code/coders. i need to get up to speed on this.
there were a couple of simple bugs i had to fix to get it to compile, and the distutils install choked looking for sandbox/ompc.pth. not sure what should be in there, so i just touched it to keep things moving. also, i had to fix a startling bug near the end in the ompc/ompcply.py file from the examples.zip linked from the examples page (startling because it surely could never have run before).
if not os.path.exists(sys.path[1]): should be if not os.path.exists(sys.argv[1]):
also, ompcply.py needs to be executable with the appropriate shebang at the top.
so, most examples work (lots of warnings about how the bytecode stuff doesn't work with > python 2.5) but a quick test of some matlab code i had lying around didn't. surprisingly, the krufty matlab did work out of the box on octave (even the plotting). so i'm not sure ompc is quite ready for primetime yet, though to be fair i should have used 2.5.
also there is a libermate package. haven't tried it.

No comments: