jglaser commited on
Commit
405beed
1 Parent(s): 3e4676d

try fix download

Browse files
Files changed (1) hide show
  1. 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 id_, {
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
- return df
 
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