Convert legacy format to mwk2

Hey Chris,

I was wondering whether converting legacy .mwk files to .mwk2 files is possible. I saw a mwk2writer added to the nightly build but I do not see much documentation.

RT Raghavan
Movshon Lab

Hi RT,

The Python mworks.data module does include an undocumented _MWK2Writer class. It’s there to help with automated testing of the module, but you could also use it to convert an MWK file to MWK2 format.

The attached script implements such a converter. To use it:

python3 convert_to_mwk2.py data.mwk data.mwk2

Cheers,
Chris

convert_to_mwk2.py.zip (511 Bytes)

1 Like