From 66296616ae92d8457a62059984551ade0bbe4a44 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 11 Jan 2020 19:10:21 -0500 Subject: [PATCH] handle removed styles on bonded command table --- doc/utils/check-styles.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/utils/check-styles.py b/doc/utils/check-styles.py index ffa827e10c..133184ff63 100755 --- a/doc/utils/check-styles.py +++ b/doc/utils/check-styles.py @@ -226,20 +226,28 @@ fp.close() matches = re.findall(":doc:`(.+) `",text,re.MULTILINE) for c in bond.keys(): if not add_suffix(bond,c) in matches: - print("Bond style entry %s is missing or incomplete in Commands_bond.rst" % c) + if not bond[c]['removed']: + print("Bond style entry %s is missing or" % c, + "incomplete in Commands_bond.rst") matches = re.findall(":doc:`(.+) `",text,re.MULTILINE) for c in angle.keys(): if not add_suffix(angle,c) in matches: - print("Angle style entry %s is missing or incomplete in Commands_bond.rst" % c) + if not angle[c]['removed']: + print("Angle style entry %s is missing or" % c, + "incomplete in Commands_bond.rst") matches = re.findall(":doc:`(.+) `",text,re.MULTILINE) for c in dihedral.keys(): if not add_suffix(dihedral,c) in matches: - print("Dihedral style entry %s is missing or incomplete in Commands_bond.rst" % c) + if not dihedral[c]['removed']: + print("Dihedral style entry %s is missing or" % c, + "incomplete in Commands_bond.rst") matches = re.findall(":doc:`(.+) `",text,re.MULTILINE) for c in improper.keys(): if not add_suffix(improper,c) in matches: - print("Improper style entry %s is missing or incomplete in Commands_bond.rst" % c) + if not improper[c]['removed']: + print("Improper style entry %s is missing or" % c, + "incomplete in Commands_bond.rst")