File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/python/pipelines/rdkit Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,20 @@ def main():
129
129
for mol in suppl :
130
130
i += 1
131
131
AllChem .EmbedMolecule (mol )
132
- if mol is None : continue
132
+ if mol is None :
133
+ errors += 1
134
+ continue
133
135
out_vector = PBFev (mol )
134
- if out_vector is None : continue
136
+ if out_vector is None :
137
+ errors += 1
138
+ continue
135
139
rd = PBFRD (mol )
136
- mol .SetDoubleProp ("distance" ,rd )
140
+ mol .SetDoubleProp ("distance" , rd )
137
141
for j ,angle in enumerate (out_vector ):
138
- mol .SetDoubleProp ("angle" + "_" + str (j ), angle )
142
+ mol .SetDoubleProp ("angle" + "_" + str (j ), angle )
139
143
out_results .append (mol )
140
- count = write_out (out_results ,count ,writer ,args .outformat )
141
- utils .log ("Handled " + str (i )+ " molecules, resulting in " + str (count )+ " outputs" )
144
+ count = write_out (out_results , count , writer , args .outformat )
145
+ utils .log ("Handled " + str (i ) + " molecules, resulting in " + str (count )+ " outputs and " + str ( errors ) + ' errors' )
142
146
writer .flush ()
143
147
writer .close ()
144
148
input .close ()
You can’t perform that action at this time.
0 commit comments