scipy/scipy — pull request #4292 by matthew-brett (2014-12-18 18:17:20+00:00)
Title: BUG: allow empty dict as proxy for empty struct

Previously passing an empty dict as a value for a matlab array would
raise an error, whereas a dict with valid fields would not. Allow empty
dicts (and dicts with only invalid fields) by saving them as empty
matlab stucts.

This changes the API somewhat because previously dicts or objects with
no or only invalid fields would raise an error.

Fixes gh-3798