Skip to content

Commit d107a39

Browse files
committed
Make get_data not look at local files anymore
This seems to be a relic of the past when `tests/data` contained data files. It is not the case anymore.
1 parent 397301b commit d107a39

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pymc/data.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# limitations under the License.
1414

1515
import io
16-
import os
17-
import pkgutil
1816
import urllib.request
1917
import warnings
2018

@@ -63,12 +61,8 @@ def get_data(filename):
6361
-------
6462
BytesIO of the data
6563
"""
66-
data_pkg = "tests"
67-
try:
68-
content = pkgutil.get_data(data_pkg, os.path.join("data", filename))
69-
except FileNotFoundError:
70-
with urllib.request.urlopen(BASE_URL.format(filename=filename)) as handle:
71-
content = handle.read()
64+
with urllib.request.urlopen(BASE_URL.format(filename=filename)) as handle:
65+
content = handle.read()
7266
return io.BytesIO(content)
7367

7468

0 commit comments

Comments
 (0)