From ce9f255edee3937d452c11b99d23848e19f6b71a Mon Sep 17 00:00:00 2001 From: Tau Date: Sun, 8 Sep 2024 23:27:16 -0400 Subject: [PATCH] fix: Ensure tense uniformity in log messages (#267) Updated log messages to consistently use the past tense, ensuring grammatical correctness and improving readability. This change affects the messages related to conformer generation outcomes. --- unimol_tools/unimol_tools/data/conformer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unimol_tools/unimol_tools/data/conformer.py b/unimol_tools/unimol_tools/data/conformer.py index fa15efc..e97571a 100644 --- a/unimol_tools/unimol_tools/data/conformer.py +++ b/unimol_tools/unimol_tools/data/conformer.py @@ -90,9 +90,9 @@ def transform(self, smiles_list): inputs = [item for item in tqdm(pool.imap(self.single_process, smiles_list))] pool.close() failed_cnt = np.mean([(item['src_coord']==0.0).all() for item in inputs]) - logger.info('Succeed to generate conformers for {:.2f}% of molecules.'.format((1-failed_cnt)*100)) + logger.info('Succeeded in generating conformers for {:.2f}% of molecules.'.format((1-failed_cnt)*100)) failed_3d_cnt = np.mean([(item['src_coord'][:,2]==0.0).all() for item in inputs]) - logger.info('Succeed to generate 3d conformers for {:.2f}% of molecules.'.format((1-failed_3d_cnt)*100)) + logger.info('Succeeded in generating 3d conformers for {:.2f}% of molecules.'.format((1-failed_3d_cnt)*100)) return inputs @@ -213,4 +213,4 @@ def coords2unimol(atoms, coordinates, dictionary, max_atoms=256, remove_hs=True, 'src_distance': src_distance.astype(np.float32), 'src_coord': src_coord.astype(np.float32), 'src_edge_type': src_edge_type.astype(int), - } \ No newline at end of file + }