Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed May 22, 2024
1 parent f848403 commit 0c9cb7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MARBLE/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ def fit_graph(x, graph_type="cknn", par=1, delta=1.0, metric="euclidean"):
edge_index = utils.np2torch(edge_index, dtype="double")

elif graph_type == "knn":
edge_index = knn_graph(x, k=par, metric=metric)
edge_index = knn_graph(x, k=par)
edge_index = PyGu.add_self_loops(edge_index)[0]

elif graph_type == "radius":
edge_index = radius_graph(x, r=par, metric=metric)
edge_index = radius_graph(x, r=par)
edge_index = PyGu.add_self_loops(edge_index)[0]

else:
Expand Down
1 change: 0 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
echo "Checking the PyTorch version"
SED=$(which gsed || which sed)
TORCH_VERSION=$(pip freeze | grep torch== | $SED -re "s/torch==([^+]+).*/\1/")
echo $TORCH_VERSION

if [ -z "$TORCH_VERSION" ]
then
Expand Down

0 comments on commit 0c9cb7b

Please sign in to comment.