-
Notifications
You must be signed in to change notification settings - Fork 4
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
Custom profile #20
Custom profile #20
Conversation
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 am not sure how namespaces are handled for the profiles and hence for the custom classes.
My assumption is that if I create a custom class, I should be able to define it's namespace. Then any attribute attached (if not specified otherwise), should use that namespace as default.
```python | ||
from pycgmes.utils.profile import BaseProfile | ||
|
||
class CustomProfile(BaseProfile): |
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 have been thinking about this (e.g. using string enums for profiles), in general I think this a bit a workaround currently, since they are used to define the short name of the profile, which is in general "arbitrary", while what matters from a semantic point of view is the fullname defined via the namespace.
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.
You are totally correct! I will look into that.
0b124b7
to
887bfba
Compare
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.
LGTM
9d0cb71
to
7d08f90
Compare
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
…, to be dealt with elsewhere. Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
d3249ee
to
8832957
Compare
Signed-off-by: Robin Klaassen <robin.klaassen@alliander.com>
Signed-off-by: Robin Klaassen <robin.klaassen@alliander.com>
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
|
||
- [cgmes-python](#cgmes-python) | ||
<<<<<<< HEAD |
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.
<<<<<<< HEAD |
- [V3 source zip](#v3-source-zip) | ||
- [Dataclasses](#dataclasses) | ||
- [Library build, CI, CD...](#library-build-ci-cd) | ||
- [CI](#ci) | ||
- [CD](#cd) | ||
- [License](#license) | ||
>>>>>>> 4384d02 (update docs with CGMES info) |
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.
>>>>>>> 4384d02 (update docs with CGMES info) |
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.
🤦♂️
Base.py
which had a lot of things into autils
package and neatly separated modules.