Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/datasets/packaged_modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .cache import cache
from .csv import csv
from .eval import eval
from .genbank import genbank
from .hdf5 import hdf5
from .imagefolder import imagefolder
from .json import json
Expand Down Expand Up @@ -54,6 +55,7 @@ def _hash_python_lines(lines: list[str]) -> str:
"xml": (xml.__name__, _hash_python_lines(inspect.getsource(xml).splitlines())),
"hdf5": (hdf5.__name__, _hash_python_lines(inspect.getsource(hdf5).splitlines())),
"eval": (eval.__name__, _hash_python_lines(inspect.getsource(eval).splitlines())),
"genbank": (genbank.__name__, _hash_python_lines(inspect.getsource(genbank).splitlines())),
"lance": (lance.__name__, _hash_python_lines(inspect.getsource(lance).splitlines())),
}

Expand Down Expand Up @@ -87,6 +89,9 @@ def _hash_python_lines(lines: list[str]) -> str:
".hdf5": ("hdf5", {}),
".h5": ("hdf5", {}),
".eval": ("eval", {}),
".gb": ("genbank", {}),
".gbk": ("genbank", {}),
".genbank": ("genbank", {}),
".lance": ("lance", {}),
}
_EXTENSION_TO_MODULE.update({ext: ("imagefolder", {}) for ext in imagefolder.ImageFolder.EXTENSIONS})
Expand Down
Empty file.
Loading