ChemPixCH
ChemPixCH copied to clipboard
Error occurs in smiles encoding containing @
When I use the @ symbol in the smiles encoding for image synthesis, an error occurs.
File "D:\ProgramData\anaconda\envs\pytorch\lib\site-packages\rdkit\sping\pid.py", line 289, in stringBox return self.stringWidth(s, font), self.fontHeight(font) File "D:\ProgramData\anaconda\envs\pytorch\lib\site-packages\rdkit\sping\SVG\pidSVG.py", line 633, in stringWidth return pdfmetrics.stringwidth(s, fontname) * font.size * 0.001 File "D:\ProgramData\anaconda\envs\pytorch\lib\site-packages\rdkit\sping\PDF\pdfmetrics.py", line 320, in stringwidth w = w + widths[ord(char)] IndexError: list index out of range
I checked that it should be that the chiral molecule is not well written. What should I do?