Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2024
1 parent 2e6554e commit c9e2f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions notebooks/developer/test_dysh_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,3 @@

print(dysh_data("AGBT21B_024_01"))
print(dysh_data("AGBT21B_024_01/AGBT21B_024_01.raw.vegas"))



5 changes: 3 additions & 2 deletions src/dysh/util/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
import sys
from pathlib import Path

from dysh.util.download import from_url
import dysh.util as util
from dysh.util.download import from_url

from ..util import minimum_string_match

_debug = False
Expand Down Expand Up @@ -223,7 +224,7 @@ def dysh_data(sdfits=None, test=None, example=None, accept=None, dysh_data=None,
url = _url + "/example_data/" + my_example
if verbose:
print("url:", url)
filename = url.split("/")[-1]
filename = url.split("/")[-1]
if not os.path.exists(filename):
print(f"Downloading {filename} from {url}")
filename = from_url(url)
Expand Down

0 comments on commit c9e2f71

Please sign in to comment.