try fixing generate_tables
Browse files- binding_affinity.py +5 -6
binding_affinity.py
CHANGED
@@ -164,9 +164,8 @@ class BindingAffinity(datasets.ArrowBasedBuilder):
|
|
164 |
"affinity_uM": row["affinity_uM"],
|
165 |
}
|
166 |
|
167 |
-
def _generate_tables(
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
yield i, df
|
|
|
164 |
"affinity_uM": row["affinity_uM"],
|
165 |
}
|
166 |
|
167 |
+
def _generate_tables(
|
168 |
+
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
+
):
|
170 |
+
df = pd.read_parquet(filepath)
|
171 |
+
return df
|
|