Indices of complexes that failed to featurize.
pool = multiprocessing.Pool()
results = []
for i, (mol_file, protein_pdb) in enumerate(zip(mol_files, protein_pdbs)):
log_message = "Featurizing %d / %d" % (i, len(mol_files))
results.append(
pool.apply_async(ComplexFeaturizer._featurize_callback,
(self, mol_file, protein_pdb, log_message)))
pool.close()
features = []
failures = []
for ind, result in enumerate(results):
new_features = result.get()