From 1d838dad19f8db330a88d70a8c754b61f6acfd6b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 11 Jan 2020 19:41:59 -0500 Subject: [PATCH] add checking of kspace styles --- doc/utils/check-styles.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/utils/check-styles.py b/doc/utils/check-styles.py index 133184ff63..23d7e9ab05 100755 --- a/doc/utils/check-styles.py +++ b/doc/utils/check-styles.py @@ -203,8 +203,8 @@ fp.close() matches = re.findall(":doc:`(.+) <.+>`",text,re.MULTILINE) for c in command.keys(): if not c in matches: - print("Command %s is missing in Commands_all.rst" % c) - + if not command[c]['removed']: + print("Command %s is missing in Commands_all.rst" % c) f = os.path.join(doc, 'Commands_pair.rst') fp = open(f) @@ -251,3 +251,14 @@ for c in improper.keys(): print("Improper style entry %s is missing or" % c, "incomplete in Commands_bond.rst") +f = os.path.join(doc, 'Commands_kspace.rst') +fp = open(f) +text = fp.read() +fp.close() +matches = re.findall(":doc:`(.+) `",text,re.MULTILINE) +for c in kspace.keys(): + if not add_suffix(kspace,c) in matches: + if not kspace[c]['removed']: + print("KSpace style entry %s is missing or" % c, + "incomplete in Commands_kspace.rst") + print(kspace[c])