-
Notifications
You must be signed in to change notification settings - Fork 65
James/python docstrings #2273
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
base: master
Are you sure you want to change the base?
James/python docstrings #2273
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.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'GraphQL Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2
.
Benchmark suite | Current: 59feaed | Previous: f14de7d | Ratio |
---|---|---|---|
addNode |
20 req/s |
1460 req/s |
73 |
This comment was automatically generated by workflow using github-action-benchmark.
Returns the source node of the edge. | ||
|
||
Returns: | ||
GqlNode: |
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.
Think this should be Node
/// Min result. | ||
/// | ||
/// Returns: | ||
/// value: |
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 would be a Proptype i.e. if the property is a float it would be a float
/// Returns the source node of the edge. | ||
/// | ||
/// Returns: | ||
/// Nodes: |
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 a bit unfortunte as for Edge this is a Node and for Edges this is a PathFrom I believe?
/// Returns the id of the edge. | ||
/// | ||
/// Returns: | ||
/// GID: |
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 a GID pair?
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 don't know what a GID pair is, in python GID exists https://raphtory--2273.org.readthedocs.build/en/2273/reference/python/raphtory/Modules/typing/#raphtory.typing.GID
/// Explodes an edge and returns all instances it had been updated as separate edges | ||
/// | ||
/// Returns: | ||
/// Exploded: |
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.
Should be Edges I believe
fn explode(&self) -> Self::Exploded; | ||
|
||
/// Returns: | ||
/// Exploded: |
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.
edges
/// DateTime: | ||
fn date_time(&self) -> Self::ValueType<Option<DateTime<Utc>>>; | ||
|
||
/// Gets the layer name for the edge if it is restricted to a single layer |
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.
Do the below not need return types as well?
}) | ||
} | ||
|
||
/// Returns the number of times a change to the history was made. |
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.
returns int?
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.
Are these not exposed in python?
/// | ||
/// Returns: | ||
/// DegreeView: a view of the undirected node degrees | ||
/// DegreeView: a view of the undirected node degrees. |
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.
Will all of these Nodestates we are going to want to say these return a nodestate
/// | ||
/// Returns: | ||
/// DataFrame: the view of the node data as a pandas Dataframe | ||
/// DataFrame: the view of the node data as a pandas Dataframe. |
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.
does this need to be pandas.dataframe
/// Parameters: | ||
/// file_path: (str) | ||
/// | ||
/// Returns: |
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.
Errors?
/// path: (str) | ||
/// subset: (bool) | ||
/// | ||
/// Returns: |
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.
errors?
/// Explodes returns an edge object for each update within the original edge. | ||
/// | ||
/// Returns: | ||
/// Exploded: |
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.
not nodes above or exploded here
What changes were proposed in this pull request?
Further changes required
MetadataView
should also be exposed.value
should either be exposed or the documented return type chnaged if there is already a Python equivilent (I was not able to identify one).