igashov commited on
Commit
e4172ed
1 Parent(s): 6b09d74

Update src/datasets.py

Browse files

Disable second filtering by number of atoms

Files changed (1) hide show
  1. src/datasets.py +4 -4
src/datasets.py CHANGED
@@ -218,10 +218,10 @@ def collate(batch):
218
  out = {}
219
 
220
  # Filter out big molecules
221
- if 'pocket_mask' not in batch[0].keys():
222
- batch = [data for data in batch if data['num_atoms'] <= 50]
223
- else:
224
- batch = [data for data in batch if data['num_atoms'] <= 1000]
225
 
226
  for i, data in enumerate(batch):
227
  for key, value in data.items():
 
218
  out = {}
219
 
220
  # Filter out big molecules
221
+ # if 'pocket_mask' not in batch[0].keys():
222
+ # batch = [data for data in batch if data['num_atoms'] <= 50]
223
+ # else:
224
+ # batch = [data for data in batch if data['num_atoms'] <= 1000]
225
 
226
  for i, data in enumerate(batch):
227
  for key, value in data.items():