Skip to content

Commit

Permalink
fix installation configuration (#223)
Browse files Browse the repository at this point in the history
* remove the test of modelnet40 dataset

* fix installation configuration
  • Loading branch information
xy-Ji authored Dec 19, 2024
1 parent 4f6396f commit 26d3793
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Currently, GammaGL requires **Python Version >= 3.9** and is only supported on *

# For torch, version 2.1+cuda 11.8
# https://pytorch.org/get-started/locally/
$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
$ pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118

# For paddle, any latest stable version
# https://www.paddlepaddle.org.cn/
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def load_extensions():

return extensions

install_requires = ['numpy==1.24', 'pandas', 'numba', 'scipy', 'protobuf', 'pyparsing', 'rdkit',
'tensorboardx', 'pytest', 'tensorlayerx', 'rich', 'tqdm', 'pybind11', 'panda', 'ninja']
install_requires = ['numpy==1.24', 'pandas', 'numba==0.59.0', 'scipy', 'protobuf', 'pyparsing', 'rdkit',
'tensorboardx', 'pytest', 'tensorlayerx', 'rich', 'tqdm', 'pybind11', 'panda', 'ninja==1.11.1.1']

classifiers = [
'Development Status :: 3 - Alpha',
Expand Down
26 changes: 13 additions & 13 deletions tests/datasets/test_modelnet40.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from gammagl.datasets import ModelNet40
# from gammagl.datasets import ModelNet40

root = './data'
def test_modelnet40(get_dataset):
train_dataset = get_dataset(name = 'ModelNet40')
assert train_dataset.num_features == 3
assert train_dataset.num_node_features == 3
assert train_dataset.num_points == 1024
assert train_dataset.split == 'train'
test_dataset = get_dataset(name = 'ModelNet40',split = 'test')
assert test_dataset.num_features == 3
assert test_dataset.num_node_features == 3
assert test_dataset.num_points == 1024
assert test_dataset.split == 'test'
# root = './data'
# def test_modelnet40(get_dataset):
# train_dataset = get_dataset(name = 'ModelNet40')
# assert train_dataset.num_features == 3
# assert train_dataset.num_node_features == 3
# assert train_dataset.num_points == 1024
# assert train_dataset.split == 'train'
# test_dataset = get_dataset(name = 'ModelNet40',split = 'test')
# assert test_dataset.num_features == 3
# assert test_dataset.num_node_features == 3
# assert test_dataset.num_points == 1024
# assert test_dataset.split == 'test'

0 comments on commit 26d3793

Please sign in to comment.