Skip to content

Commit

Permalink
Temporary workaround for the pyhmmer import
Browse files Browse the repository at this point in the history
  • Loading branch information
aozalevsky committed Jun 11, 2024
1 parent 93955eb commit defd60b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ihm_validation/ihm_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ def write_json(mmcif_file: str, template_dict: dict, dirName: str, dirName_Outpu
report = WriteReport(args.f,
db=args.databases_root,
cache=args.cache_root,
nocache=args.nocache)
nocache=args.nocache,
enable_sas=args.enable_sas,
enable_cx=args.enable_cx)

logging.info("Entry composition")
template_dict = report.run_entry_composition(Template_Dict)
Expand Down
7 changes: 5 additions & 2 deletions ihm_validation/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import excludedvolume
import molprobity
import get_plots, sas, sas_plots
import cx
import utility
import pickle
import json
Expand All @@ -27,7 +26,8 @@
REPORT_VERSION = '2.0-dev'

class WriteReport(object):
def __init__(self, mmcif_file, db, cache, nocache=False):
def __init__(self, mmcif_file, db, cache, nocache=False,
enable_sas=True, enable_cx=False):
self.mmcif_file = mmcif_file
self.db = db
self.input = GetInputInformation(self.mmcif_file)
Expand All @@ -37,6 +37,9 @@ def __init__(self, mmcif_file, db, cache, nocache=False):
self.nocache = nocache
self.report_version = REPORT_VERSION

if enable_cx:
import cx

def create_webdriver(self) -> webdriver.Firefox:
'''instantiate webdriver for rendering plots'''
firefox_options = webdriver.FirefoxOptions()
Expand Down

0 comments on commit defd60b

Please sign in to comment.