try fix download
Browse files- binding_affinity.py +2 -2
binding_affinity.py
CHANGED
@@ -157,7 +157,7 @@ class BindingAffinity(datasets.ArrowBasedBuilder):
|
|
157 |
|
158 |
df = pd.read_parquet(filepath)
|
159 |
for k, row in df.iterrows():
|
160 |
-
yield
|
161 |
"seq": row["seq"],
|
162 |
"smiles": row["smiles"],
|
163 |
"neg_log10_affinity_M": row["neg_log10_affinity_M"],
|
@@ -168,4 +168,4 @@ class BindingAffinity(datasets.ArrowBasedBuilder):
|
|
168 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
):
|
170 |
df = pd.read_parquet(filepath)
|
171 |
-
|
|
|
157 |
|
158 |
df = pd.read_parquet(filepath)
|
159 |
for k, row in df.iterrows():
|
160 |
+
yield k, {
|
161 |
"seq": row["seq"],
|
162 |
"smiles": row["smiles"],
|
163 |
"neg_log10_affinity_M": row["neg_log10_affinity_M"],
|
|
|
168 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
):
|
170 |
df = pd.read_parquet(filepath)
|
171 |
+
yield split, df
|