Skip to content

Commit

Permalink
test of existing dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasgrewal committed Apr 11, 2019
1 parent 212f03a commit 2c1794a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified cancerscope/__init__.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion cancerscope/get_models.py
Expand Up @@ -28,7 +28,7 @@ def findmodel(expected_pckgdir, model_label, expected_targetdir=None):

else:
"""Otherwise, it would appear model wasnt even attempted to be downloaded"""
if os.path.isdir(expected_targetdir):
if expected_targetdir is not None:
sys.stdout.write("Model file {0} proceeding with download...".format(model_label))
dnld_dir = downloadmodel(model_label = model_label, targetdir=expected_targetdir)
modelOptions_local[model_label] = dnld_dir + "/" + model_label.split("_")[-1]
Expand Down
Binary file modified cancerscope/get_models.pyc
Binary file not shown.

0 comments on commit 2c1794a

Please sign in to comment.