Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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 @@ -10,6 +10,7 @@
from .conll import conll
from .csv import csv
from .eval import eval
from .genbank import genbank
from .hdf5 import hdf5
from .iceberg import iceberg
from .imagefolder import imagefolder
Expand Down Expand Up @@ -63,6 +64,7 @@ def _hash_python_lines(lines: list[str]) -> str:
"lance": (lance.__name__, _hash_python_lines(inspect.getsource(lance).splitlines())),
"tsfile": (tsfile.__name__, _hash_python_lines(inspect.getsource(tsfile).splitlines())),
"iceberg": (iceberg.__name__, _hash_python_lines(inspect.getsource(iceberg).splitlines())),
"genbank": (genbank.__name__, _hash_python_lines(inspect.getsource(genbank).splitlines())),
}

# get importable module names and hash for caching
Expand Down Expand Up @@ -99,6 +101,9 @@ def _hash_python_lines(lines: list[str]) -> str:
".eval": ("eval", {}),
".lance": ("lance", {}),
".tsfile": ("tsfile", {}),
".gb": ("genbank", {}),
".gbk": ("genbank", {}),
".genbank": ("genbank", {}),
}
_EXTENSION_TO_MODULE.update({ext: ("imagefolder", {}) for ext in imagefolder.ImageFolder.EXTENSIONS})
_EXTENSION_TO_MODULE.update({ext.upper(): ("imagefolder", {}) for ext in imagefolder.ImageFolder.EXTENSIONS})
Expand Down
Empty file.
Loading