Skip to content

Commit

Permalink
Merge pull request #148 from draeger-lab/GwennyGit-patch-3
Browse files Browse the repository at this point in the history
Fixed documentation
  • Loading branch information
GwennyGit authored Nov 11, 2024
2 parents 655261a + f28bba0 commit 4a17b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
html_logo = str(Path('images','refineGEMs_logo.png'))
html_theme_options = {
'logo_only': True,
'display_version': False,
'flyout_display': 'attached'
}

Expand Down
6 changes: 3 additions & 3 deletions src/refinegems/utility/databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a17b1f

Please sign in to comment.