if all_same(l_o_t) == True:
for scal in scaling_data: # search through database of scaling factors
if l_o_t[0].upper().find(scal['level'].upper()) > -1 or l_o_t[0].upper().find(scal['level'].replace("-","").upper()) > -1:
options.freq_scale_factor = scal['zpe_fac']; ref = scaling_refs[scal['zpe_ref']]
log.Write("\n\n " + "Found vibrational scaling factor for " + l_o_t[0] + " level of theory" + "\n REF: " + ref)
elif all_same(l_o_t) == False: log.Write("\n " + (textwrap.fill("CAUTION: different levels of theory found - " + '|'.join(l_o_t), 128, subsequent_indent=' ')))
scal['level'] would be in "Byte" type and l_o_t[0] is always string type. Thus, it will raise
if l_o_t[0].upper().find(scal['level'].upper()) > -1 or l_o_t[0].upper().find(scal['level'].replace("-","").upper()) > -1:
TypeError: must be str, not bytes
seems easy to fix, and I think I should use 2.7 to run these code.....
Umm.... A issue again
Ln 436 - Ln 441
scal['level'] would be in "Byte" type and l_o_t[0] is always string type. Thus, it will raise
seems easy to fix, and I think I should use 2.7 to run these code.....