Unpacking mwk files with Windows

Simon Bohn's Avatar

Simon Bohn

04 Jan, 2019 02:40 PM

Hi Chris,

Hope you had a good holiday season! Elia in our lab is wanting to look at some .mwk files, but he is a member of the Church of Windows And Linux, and does not wish to lay his hands upon a filthy Mac (his words, not mine...but I understand the sentiment). I sent him the matlab script from /Application Support/Mworks/Scripting/Matlab, but he says it relies on a compiled mex file in the mac format and cannot run on his computer. Would it be possible to compile that file in a windows mex format so he can unpack the data files? If not, is there a good way to save an unpacked database so I can unpack it and send it to him?

Thanks,

Simon

  1. Support Staff 1 Posted by Christopher Sta... on 04 Jan, 2019 02:50 PM

    Christopher Stawarz's Avatar

    Hi Simon,

    Would it be possible to compile that file in a windows mex format so he can unpack the data files?

    No. See this discussion for more info.

    Other folks have developed tools for reading MWorks data files on non-Mac systems, but I can't provide any support for this. See this comment for details.

    If not, is there a good way to save an unpacked database so I can unpack it and send it to him?

    If you're using MATLAB, you could read out all the events with getEvents, then write the resulting array to a .mat file. If you're using Python, maybe try pickle?

    Cheers,
    Chris

  2. 2 Posted by Simon Bohn on 04 Jan, 2019 06:21 PM

    Simon Bohn's Avatar

    Ah, too bad but makes sense. Pickling it could work but won't the pickles
    be really huge? I really only want to send him the eye movements -- would
    there be a simple way to unpack just those and save them to a csv?

  3. Support Staff 3 Posted by Christopher Sta... on 04 Jan, 2019 08:57 PM

    Christopher Stawarz's Avatar

    I really only want to send him the eye movements -- would there be a simple way to unpack just those and save them to a csv?

    Well, you could extract the events you want, then write out their values using csv.writer. That seems pretty simple.

    Chris

  4. Christopher Stawarz closed this discussion on 15 Jan, 2019 02:46 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Feb, 2019 02:24 PM
02 Feb, 2019 01:58 PM
01 Feb, 2019 06:25 PM
26 Jan, 2019 12:15 AM
18 Jan, 2019 05:44 PM