os.listdir fix
Browse files
nba_tracking_data_15_16.py
CHANGED
@@ -46,7 +46,7 @@ items = res.json()['payload']['tree']['items']
|
|
46 |
|
47 |
# trying subset of games
|
48 |
_URLS = {}
|
49 |
-
for game in items[0:
|
50 |
name = game['name'][:-3]
|
51 |
_URLS[name] = _URL + "/" + name + ".7z"
|
52 |
|
@@ -157,7 +157,7 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
157 |
|
158 |
all_file_paths = {}
|
159 |
for key, directory_path in data_dir.items():
|
160 |
-
all_file_paths[key] = os.path.join(directory_path, os.listdir(directory_path))
|
161 |
|
162 |
return [
|
163 |
datasets.SplitGenerator(
|
|
|
46 |
|
47 |
# trying subset of games
|
48 |
_URLS = {}
|
49 |
+
for game in items[0:20]:
|
50 |
name = game['name'][:-3]
|
51 |
_URLS[name] = _URL + "/" + name + ".7z"
|
52 |
|
|
|
157 |
|
158 |
all_file_paths = {}
|
159 |
for key, directory_path in data_dir.items():
|
160 |
+
all_file_paths[key] = os.path.join(directory_path, os.listdir(directory_path)[0])
|
161 |
|
162 |
return [
|
163 |
datasets.SplitGenerator(
|