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

Updates `_generate_examples`.

Browse files
Files changed (1) hide show
  1. nist_lpbf_scan_tracks.py +3 -2
nist_lpbf_scan_tracks.py CHANGED
@@ -179,11 +179,12 @@ class AMDataset(datasets.GeneratorBasedBuilder):
179
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
180
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
181
 
182
- print(files)
183
  for index, file in enumerate(files):
184
  with open(file, "rb") as f:
185
  track = pickle.load(f)
186
- yield index, track
 
 
187
 
188
  # with open(filepath, encoding="utf-8") as f:
189
  # for key, row in enumerate(f):
 
179
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
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):