Skip to content

Commit

Permalink
Merge branch 'master' of github.com:i2mint/chromadol
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Jan 3, 2024
2 parents bfe85c1 + caf5ff8 commit 3091555
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions chromadol/data_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@


def load_text(filepath: str) -> str:
with open(filepath, "r") as f:
with open(filepath, 'r') as f:
return f.read()


def load_bytes(filepath: str) -> bytes:
with open(filepath, "rb") as f:
with open(filepath, 'rb') as f:
return f.read()


Expand Down Expand Up @@ -72,8 +72,8 @@ def __init__(
self,
loader=load_text,
*,
prefix: str = "",
suffix: str = "",
prefix: str = '',
suffix: str = '',
max_workers: int = multiprocessing.cpu_count(),
) -> None:
"""
Expand All @@ -91,7 +91,7 @@ def __init__(
def _load_file(self, uri: Optional[URI]) -> Optional[FileContents]:
if uri is None:
return None
return self._loader(f"{self._prefix}{uri}{self._suffix}")
return self._loader(f'{self._prefix}{uri}{self._suffix}')

def __call__(self, uris: Sequence[Optional[URI]]) -> List[Optional[FileContents]]:
if isinstance(uris, str):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root_url = https://github.com/i2mint/
license = mit
author = OtoSense
version = 0.1.0
version = 0.1.1
description = Data Object Layer for ChromaDB
description_file = README.md
long_description = file:README.md
Expand Down

0 comments on commit 3091555

Please sign in to comment.