diff --git a/docs/source/conf.py b/docs/source/conf.py index 6778a3c..ec42dc1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -82,7 +82,6 @@ html_logo = str(Path('images','refineGEMs_logo.png')) html_theme_options = { 'logo_only': True, - 'display_version': False, 'flyout_display': 'attached' } diff --git a/src/refinegems/utility/databases.py b/src/refinegems/utility/databases.py index 6d33722..8eec169 100644 --- a/src/refinegems/utility/databases.py +++ b/src/refinegems/utility/databases.py @@ -114,9 +114,9 @@ def is_valid_database(db_cursor: sqlite3.Cursor) -> int: db_cursor.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = [string[0] for string in db_cursor.fetchall()] - bigg_tables_contained = len([s for s in tables if re.match('^bigg_(?!to)(.*?)', s, re.IGNORECASE)]) == 2 - sbo_tables_contained = len([s for s in tables if re.match('(.*?)_sbo$', s, re.IGNORECASE)]) == 2 - media_tables_contained = len([s for s in tables if re.match('^medium(.*?)|^substance(.*?)|^subset(.*?)', s, re.IGNORECASE)]) == 6 + bigg_tables_contained = len([s for s in tables if re.match(r'^bigg_(?!to)(.*?)', s, re.IGNORECASE)]) == 2 + sbo_tables_contained = len([s for s in tables if re.match(r'(.*?)_sbo$', s, re.IGNORECASE)]) == 2 + media_tables_contained = len([s for s in tables if re.match(r'^medium(.*?)|^substance(.*?)|^subset(.*?)', s, re.IGNORECASE)]) == 6 sbo_media_tables_contained = sbo_tables_contained and media_tables_contained # These can only occur together modelseed_cmpd_tbl_contained = len([s for s in tables if s == 'modelseed_compounds']) == 1