We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 430c72c commit 2b9c1e5Copy full SHA for 2b9c1e5
1 file changed
chebai_graph/preprocessing/datasets/chebi.py
@@ -296,7 +296,10 @@ def _merge_props_into_base(self, row: pd.Series | dict) -> GeomData:
296
Returns:
297
A GeomData object with merged features.
298
"""
299
- geom_data = row["features"]
+ if isinstance(row["features"], tuple):
300
+ geom_data, _ = row["features"] # ignore additional returned data from _read_data (e.g. augmented molecule dict)
301
+ else:
302
+ geom_data = row["features"]
303
assert isinstance(geom_data, GeomData)
304
edge_attr = geom_data.edge_attr
305
x = geom_data.x
0 commit comments