Closed WeiYongqiang55 closed 4 years ago
Same issue as previously - this only happens if there are no NMR output files found for that particular isomer, so probably again issue of wrong input file and/or output folder specification. There is little point in the proposed fix as there is no point in continuing with DP4 process if it has no DFT NMR data, it will just fail somehwhere later down the line. But I will improve the error message.
File "PyDP4.py", line 293, in main Isomers = DFT.ReadShieldings(Isomers) File "/home/wyq/Downloads/DP4-AI-master3/DP4-AI-master/Gaussian.py", line 504, in ReadShieldings iso.ShieldingLabels = labels UnboundLocalError: local variable 'labels' referenced before assignment
fixed by move labels=[] out second for loop
for iso in Isomers: