Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[dtypes] odML style tuples are not properly saved #353

Closed
mpsonntag opened this issue Feb 11, 2020 · 1 comment
Closed

[dtypes] odML style tuples are not properly saved #353

mpsonntag opened this issue Feb 11, 2020 · 1 comment
Labels

Comments

@mpsonntag
Copy link
Contributor

When saving a Document containing Properties with odML style tuples, only the very first tuple is saved, the other ones are discarded.

The following example will save only the value (1; 2) to file:

doc = odml.Document()
sec = doc.create_section(name="tuple_test")
prop = sec.create_property(name="tuple_test", dtype="2-tuple")
prop.values = ["(1; 2)", "(3; 4)", "(5; 6)"]
odml.save(doc, './test.odml')
@mpsonntag mpsonntag added the bug label Feb 11, 2020
@mpsonntag
Copy link
Contributor Author

Closing this issue also includes adding corresponding tests.

mpsonntag added a commit to mpsonntag/python-odml that referenced this issue Feb 17, 2020
Closes G-Node#353

Use the parser_utils odml_tuple_export function
in xmlparser and dict_parser. It is required to
properly serialize odml style tuples to XML, JSON
and YAML files.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant