Skip to content

Commit 7d5f46d

Browse files
committed
Merge branch 'dev' into thesis_augmented_gnn
2 parents 0653b4f + f1ce5b8 commit 7d5f46d

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ To install this repository, download it and run
1313
pip install .
1414
```
1515

16-
The dependencies `torch`, `torch_geometric` and `torch-sparse` cannot be installed automatically.
16+
or install it directly with
17+
```bash
18+
pip install git+https://github.com/ChEB-AI/python-chebai-graph.git
19+
```
20+
21+
The dependencies `torch`, `torch_geometric` and `torch_scatter` cannot be installed automatically.
1722

1823
Use the following command:
1924

@@ -22,8 +27,8 @@ pip install torch torch_scatter torch_geometric -f https://data.pyg.org/whl/torc
2227
```
2328

2429
Replace:
25-
- `${TORCH}` with your installed PyTorch version (e.g., `2.6.0`)
26-
- `${CUDA}` with e.g. `cpu`, `cu118`, or `cu121` depending on your system and CUDA version
30+
- `${TORCH}` with a PyTorch version (e.g., `2.8.0`; for later versions, check first if they are compatible with torch_scatter and [torch_geometric](https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html))
31+
- `${CUDA}` with `cpu`, `cu118`, `cu121` (or other, depending on your system and CUDA version)
2732

2833
If you already have `torch` installed, make sure that `torch_scatter` and `torch_geometric` are compatible with your
2934
PyTorch version and are installed with the same CUDA version.

chebai_graph/preprocessing/datasets/chebi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def _setup_properties(self) -> None:
117117
idents = [row["ident"] for row in raw_data]
118118
features = [row["features"] for row in raw_data]
119119

120+
# use vectorized version of encode function, apply only if value is present
120121
def enc_if_not_none(encode, value):
121122
return (
122123
[encode(v) for v in value]

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,23 @@ authors = [
77
]
88
dependencies = [
99
"chebai",
10-
"descriptastorus"
10+
"descriptastorus",
11+
# below packages need to manually installed as mentioned in readme
12+
# torch-geometric
13+
# torch_scatter
1114
]
1215
requires-python = ">=3.8"
1316

1417

1518
[project.optional-dependencies]
1619
dev = [
1720
"tox",
21+
]
22+
23+
linters = [
24+
"isort",
1825
"pre-commit",
19-
"black"
26+
"black",
2027
]
2128

2229
[build-system]

0 commit comments

Comments
 (0)