clowder-framework / pyclowder

Library to assist in the development of extractors for clowder.
University of Illinois/NCSA Open Source License
10 stars 2 forks source link

dataset file list returns paged instead of list of files #99

Closed tcnichol closed 4 months ago

tcnichol commented 7 months ago

Using the huggingface ray dataset extractor, I noticed I was getting an error when iterating through the fileList.

The fileList contained a field metadata (related to the pagination) and then 'data'.

This line

if f['id'] == fileid:

causes an error because f is a metadata object, and not a file object.