-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dlite.Instance.from_dict()
to correctly parse ref-type properties
#983
Conversation
Top = dlite.get_instance("http://onto-ns.com/meta/0.1/Top") | ||
Middle = dlite.get_instance("http://onto-ns.com/meta/0.1/Middle") | ||
Middle = dlite.get_instance("http://onto-ns.com/meta/0.2/Middle") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should still test json as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are still testing JSON, since all the other datamodels are read from input/test_ref_type.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reading the yaml version only available in python?
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
Sorry, unsure what you mean here? The YAML plugin is written in Python, but it is still be used from C via the embedded interpreter. |
OK, thank you for the clarification. |
Description
This should make it possible to correctly parse YAML files with ref-type properties.
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.