Commit 71eba8fd authored by Lukas Pravda's avatar Lukas Pravda
Browse files

improve nan condition to account for -nan

parent 0f0d3603
......@@ -182,7 +182,7 @@ def convert_svg(svg_string, ccd_id, mol: rdkit.Chem.Mol):
x = label_svg.attrib.get('x')
y = label_svg.attrib.get('y')
if 'nan' in (x, y):
if any('nan' in x for x in [x,y]): # check for broken labels with 'nan' and '-nan'
temp = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment