Get mworks events on Braintree

Hi Chris,

I am trying to stay on Braintree when reading mworks events. Since the files are so big now and since everything else is on Braintree, it would be nice to not process files with my local mworks installation on my mac. Ideally, the code would run from Braintree rather than locally, like all my other code.

When I copy the matlab scripts, it complains that there is a mac mex file, so the MWORKS/Scripting/MATLAB version cannot just be copied to Braintree and used. I assume there is no easy fix for this?

When I try to use python, it throws an error for the

from mworks.data import MWKFile, presumably because the sys.path.insert way to add the code is not working?

I am new to python so I am hoping there is a trivial solution for this?

Thanks!

Alina

Hi Alina,

MWorks’ official data-file tools for both Python and MATLAB depend on compiled code that runs only on macOS. However, there are some unofficial (and unsupported) ways of reading MWorks event files on other operating systems. In particular, I’ve written a pure-Python MWK2 reader (described in the docs and available on GitHub). To use it, you’ll need to install the msgpack package.

For a bit more info, see this discussion.

Cheers,
Chris