Skip to content

Commit

Permalink
Merge pull request #32 from pachterlab/dev
Browse files Browse the repository at this point in the history
Dev -> main
  • Loading branch information
lauraluebbert authored Aug 11, 2022
2 parents 5d12875 + 8261699 commit 31a8e3a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gget/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
# Mute numexpr threads info
logging.getLogger("numexpr").setLevel(logging.WARNING)

__version__ = "0.3.7"
__version__ = "0.3.8"
__author__ = "Laura Luebbert"
__email__ = "[email protected]"
5 changes: 5 additions & 0 deletions gget/gget_alphafold.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ def alphafold(
the AlphaFold-Multimer paper (https://www.biorxiv.org/content/10.1101/2021.10.04.463034v1).
"""

if platform.system() == "Windows":
logging.warning(
"gget setup alphafold and gget alphafold are not supported on Windows OS."
)

## Check if third-party dependencies are installed
# Check if openmm is installed
try:
Expand Down
6 changes: 6 additions & 0 deletions gget/gget_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def setup(module):
)

if module == "alphafold":
if platform.system() == "Windows":
logging.warning(
"gget setup alphafold and gget alphafold are not supported on Windows OS."
)

## Make sure package paths are appended so openmm can be imported
site_packages_path = os.__file__.split("os.py")[0] + "site-packages"
if site_packages_path not in sys.path:
Expand Down Expand Up @@ -316,6 +321,7 @@ def setup(module):
sys.stderr.write(stderr)
# Exit system if the subprocess returned with an error
if process.wait() != 0:
logging.error("Model parameter download failed.")
return
else:
logging.info("Model parameter download complete.")
Expand Down
Empty file modified tests/__init__.py
100644 → 100755
Empty file.

0 comments on commit 31a8e3a

Please sign in to comment.