We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397301b commit d107a39Copy full SHA for d107a39
pymc/data.py
@@ -13,8 +13,6 @@
13
# limitations under the License.
14
15
import io
16
-import os
17
-import pkgutil
18
import urllib.request
19
import warnings
20
@@ -63,12 +61,8 @@ def get_data(filename):
63
61
-------
64
62
BytesIO of the data
65
"""
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()
+ with urllib.request.urlopen(BASE_URL.format(filename=filename)) as handle:
+ content = handle.read()
72
return io.BytesIO(content)
73
74
0 commit comments