Is this a Bug? Structure To/From File patches

The .plist file is accurate.

The structure output from Structure From File appears out of order?

Struct Maker data:

Structure From File outputs:

smokris's picture
Re: Is this a Bug? Structure To/From File patches

Yes, this is a bug --- but I think the bug is in the Struct Maker patch, not the File patches.

Structures consist of two types of lists: array or dictionary. Arrays preserve order and use sequential indices starting at zero; dictionaries use arbitrary keys but don't preserve order (not even alphanumeric order). The Struct Maker patch is (incorrectly) producing a keyed dictionary, so the order isn't guaranteed upon reading it back in from disk.

As a temporary workaround, you can use Structure Key Member instead of Structure Index Member, and you should get the results you're after.

I'm going to try to do an update to StructureTools in the near future, and will address this issue.

jersmi's picture
Re: Is this a Bug? Structure To/From File patches

I missed this response for some reason. Thanks for that, very helpful.