From: W. Trevor King Date: Wed, 25 Aug 2010 11:59:57 +0000 (-0400) Subject: Fix references to valid_CASno() in bin/chem_db.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ac3991d8abcb028aa3265592d9aae91fc2b7930;p=chemdb.git Fix references to valid_CASno() in bin/chem_db.py --- diff --git a/bin/chem_db.py b/bin/chem_db.py index 9c9c4ba..0c1920b 100755 --- a/bin/chem_db.py +++ b/bin/chem_db.py @@ -126,13 +126,13 @@ if __name__ == '__main__': valid = True cas = record['CAS#'] if len(cas.split(CAS_DELIM)) == 0 : # cas = 'N...N-NN-N' - if not valid_CASno(cas, options.verbose): + if not chemdb.chemdb.valid_CASno(cas, options.verbose): valid = False print >> ofile, "Invalid CAS# in record: '%s'" % cas else : # cas = 'N...N-NN-N:X%,N...N-NN-N:Y%,...' for casterm in cas.split(CAS_DELIM) : # casterm = 'N...N-NN-N:X%' c = casterm.split(PERCENT_DELIM)[0] # c = 'N...N-NN-N' - if not valid_CASno(c, options.verbose): + if not chemdb.chemdb.valid_CASno(c, options.verbose): valid = False print >> ofile, "Invalid CAS* in record: '%s'" % c if not valid: