-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added Docstrings to base.py #35
base: main
Are you sure you want to change the base?
Conversation
znflow/base.py
Outdated
""" | ||
|
||
""" |
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.
Please provide proper docstring, or remove entirely
znflow/base.py
Outdated
"""A method that checks for an existing UUID. | ||
|
||
If no UUID exists, it sets the previously defined UUID for the node. |
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.
Please add a Raises
section
if self._uuid is not None: | ||
raise ValueError("uuid is already set") | ||
self._uuid = value | ||
|
||
def run(self): | ||
"""Run Method of NodeBaseMixin.""" |
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.
The run
method is a really important abstract method. It's the method that is executed upon the graph run call.
znflow/base.py
Outdated
attribute: | ||
Node.attribute |
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 know, this is on me, but could you change this to numpy docstrings format?
# Conflicts: # znflow/base.py # znflow/graph.py
# Conflicts: # znflow/base.py
# Conflicts: # znflow/base.py
…into 2-add-docstrings # Conflicts: # znflow/base.py
No description provided.