From 6ac3991d8abcb028aa3265592d9aae91fc2b7930 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 25 Aug 2010 07:59:57 -0400 Subject: [PATCH] Fix references to valid_CASno() in bin/chem_db.py --- bin/chem_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2