Skip to content

Commit

Permalink
Github actions for unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChaseButterfield committed Apr 5, 2024
1 parent 97f2cce commit 738d1f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Empty file.
4 changes: 2 additions & 2 deletions src/grfgnn/gnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ def display_viewable_graph():
print(ground_truth_indices)

# Create a validation dataloader
valLoader: DataLoader = DataLoader(val_set, batch_size=500, shuffle=False)
valLoader: DataLoader = DataLoader(val_set, batch_size=100, shuffle=False)

# Setup four graphs
fig, axes = plt.subplots(4, figsize=[50, 10])
fig, axes = plt.subplots(4, figsize=[20, 10])
fig.suptitle('Foot Estimated Forces vs. Ground Truth')

# Validate on entire eval_dataset
Expand Down
11 changes: 6 additions & 5 deletions src/grfgnn/urdfParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def __init__(self,
parent=connections[0],
child=connections[1])
self.edges.append(new_edge)
if len(connections) > 2: # TODO: Don't connect children to other children
if len(connections
) > 2: # TODO: Don't connect children to other children
# Setup an edge for each pair of connections
count = 0
for i in range(0, len(connections)):
Expand Down Expand Up @@ -233,10 +234,10 @@ def get_edge_name_to_connections_dict(self):
it's connected to.
Returns:
edge_dict (dict[str, np.array([int, int])]): This dictionary
takes the name of an edge in the URDF as input. It
returns an np.array that contains the indices of the
two nodes that this edge is connected to.
edge_dict (dict[str, np.array([[int, int],[int, int]])]):
This dictionary takes the name of an edge in the URDF
as input. It returns an np.array that contains the
indices of the two nodes that this edge is connected to.
"""

node_dict = self.get_node_name_to_index_dict()
Expand Down

0 comments on commit 738d1f4

Please sign in to comment.