-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adoption python pipeline to new namespace #44
Adoption python pipeline to new namespace #44
Conversation
@@ -85,6 +85,12 @@ def save(self, path, individual_files=False, include_empty_properties=False): | |||
# we first re-add all child nodes to the collection. | |||
# This is probably not the most elegant or fast way to do this, but it is simple and robust. | |||
for node in tuple(self.nodes.values()): | |||
|
|||
if node.type_.startswith("https://openminds.ebrains.eu/"): |
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.
This is not the best way to detect the version. Perhaps we should add a property to the collection JSON file when saving, indicating which version of openMINDS it was produced with.
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 haven't tried the code, but it looks generally good. A few suggestions inline.
pipeline/translator.py
Outdated
@@ -252,3 +261,32 @@ def get_edges(self): | |||
embedded.update(property.get("_embeddedTypes", [])) | |||
linked.update(property.get("_linkedTypes", [])) | |||
return embedded, linked | |||
|
|||
def get_module_dict(self,class_module_dict): |
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 suggest renaming this update_class_to_module_map
No description provided.