We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
list
I dont exactly know if this is a bug or just something I have not fully understood:
There are a lot of instances where the CGMES classes are using "list" as a default value for attributes which usually point to other classes?
"list"
Why dont we use None here? Is this done to indicate that this is a 1-to-n relation ship and the attribute may contain a list of references?
None
I find it pretty odd to use a string literal in this case. Why not initialize them with an empty list [] in this case?
[]
@sogno-platform/cim-maintainers
The text was updated successfully, but these errors were encountered:
As suspected the string literal "list" is used for non 1-to-1 relationships.
Here is the relevant piece of code in CIMgen:
cimgen/python/langPack.py
Line 53 in 61c3564
Hence, this requires a change in CIMgen. Moving the issue over to this repo.
Sorry, something went wrong.
No branches or pull requests
I dont exactly know if this is a bug or just something I have not fully understood:
There are a lot of instances where the CGMES classes are using
"list"
as a default value for attributes which usually point to other classes?Why dont we use
None
here? Is this done to indicate that this is a 1-to-n relation ship and the attribute may contain a list of references?I find it pretty odd to use a string literal in this case. Why not initialize them with an empty list
[]
in this case?@sogno-platform/cim-maintainers
The text was updated successfully, but these errors were encountered: