ppak10 commited on
Commit
f77c8c1
1 Parent(s): 401e6f1

WIP updates `_generate_examples`.

Browse files
Files changed (1) hide show
  1. nist_lpbf_scan_tracks.py +5 -5
nist_lpbf_scan_tracks.py CHANGED
@@ -180,11 +180,11 @@ class AMDataset(datasets.GeneratorBasedBuilder):
180
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
181
 
182
  for index, file in enumerate(files):
183
- with open(file, "rb") as f:
184
- track = pickle.load(f)
185
- yield index, {
186
- "track": track
187
- }
188
 
189
  # with open(filepath, encoding="utf-8") as f:
190
  # for key, row in enumerate(f):
 
180
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
181
 
182
  for index, file in enumerate(files):
183
+ # with open(file, "rb") as f:
184
+ # track = pickle.load(f)
185
+ yield index, {
186
+ "track": index
187
+ }
188
 
189
  # with open(filepath, encoding="utf-8") as f:
190
  # for key, row in enumerate(f):