[SciPy-dev] Patch for writing Matlab structs with long field names
Matthew Brett
matthew.brett at gmail.com
Mon Dec 8 14:48:12 EST 2008
Hi,
> You are right, it's probably prudent to refuse to write long field names
> by default.
>
>> We could try passing the maximum number of characters as an option
>> somehow,
>
> The attached patch (passed on from Lee) gives savemat a new option,
> "long_field_names". This option is False by default, so scipy will by
> default refuse to write structs with field names longer than 31
> characters. If long_field_names is true, up to 63 character will be
> allowed (as supported by recent Matlab versions).
Nice - thank you to you and to Lee, especially for writing the tests,
much appreciated. I've committed that patch.
Matthew
More information about the SciPy-Dev
mailing list