Skip to content

Commit 5351a17

Browse files
committed
setup remote url
1 parent 534e882 commit 5351a17

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/py_eddy_tracker/data/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ def get_path(name):
99

1010

1111
def get_remote_sample(path):
12-
# url = (
13-
# f"https://github.com/AntSimi/py-eddy-tracker-sample-id/raw/master/{path}.tar.xz"
14-
# )
15-
# content = requests.get(url).content
16-
url = f"/home/toto/dev/py-eddy-tracker-sample-id/{path}.tar.xz"
17-
content = open(url, "rb").read()
12+
url = (
13+
f"https://github.com/AntSimi/py-eddy-tracker-sample-id/raw/master/{path}.tar.xz"
14+
)
15+
content = requests.get(url).content
1816

1917
# Tar module could manage lzma tar, but it will apply un compress for each extractfile
2018
tar = tarfile.open(mode="r", fileobj=io.BytesIO(lzma.decompress(content)))

0 commit comments

Comments
 (0)