Spaces:
Sleeping
Sleeping
Update src/datasets.py
Browse filesDisable second filtering by number of atoms
- 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 |
-
|
223 |
-
else:
|
224 |
-
|
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():
|