Skip to content

Commit

Permalink
don’t offer to download models with no associated URLs
Browse files Browse the repository at this point in the history
This excludes Analytic_Fluence and presn-models (which is currently private)
  • Loading branch information
JostMigenda committed Jan 24, 2022
1 parent 8d3b8a4 commit cdf2baa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/snewpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def get_models(models=None, download_dir="SNEWPY_models"):
from urllib.request import urlretrieve
from ._model_urls import model_urls

for model in list(model_urls):
if model_urls[model] == []:
del model_urls[model]
continue

if models == "all":
models = model_urls.keys()
elif isinstance(models, str):
Expand Down

0 comments on commit cdf2baa

Please sign in to comment.