Skip to content

Commit

Permalink
docstrings udpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
Aske-Rosted committed Dec 6, 2024
1 parent 3e21f7f commit eaa12e5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/graphnet/models/graphs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def __init__(self, x: np.ndarray, cluster_columns: List[int]) -> None:
x: Array to be clustered
cluster_columns: List of column indices on which the clusters
are constructed.
Returns: None
Adds:
clustered_x: Added to the class
_counts: Added to the class
Expand Down Expand Up @@ -252,9 +251,10 @@ def _add_column(
Args:
column: Column to be added to the tensor
location: Location to insert the column in the clustered tensor
Returns:
clustered_x: The clustered tensor with the column added
location: Location to insert the column in the clustered tensor.
Altered:
clustered_x: The column is added at the end of the tenor or
inserted at the specified location
"""
if location is None:
self.clustered_x = np.column_stack([self.clustered_x, column])
Expand Down Expand Up @@ -302,9 +302,6 @@ def add_charge_threshold_summary(
charge_index: index of the charge column in the padded tensor
location: Location to insert the summarization indices in the
clustered tensor defaults to adding at the end
Returns:
clustered_x: The clustered tensor with the summarization indices
added
Adds:
_charge_sum: Added to the class
_charge_weights: Added to the class
Expand Down Expand Up @@ -359,10 +356,6 @@ def add_percentile_summary(
method: Method to summarize the features. E.g. "linear"
location: Location to insert the summarization indices in the
clustered tensor defaults to adding at the end
Returns:
None
Adds:
None
Altered:
clustered_x: The summarization indices are added at the end of
the tensor or inserted at the specified location
Expand Down

0 comments on commit eaa12e5

Please sign in to comment.