Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkinch committed Feb 13, 2024
1 parent 5a6e8ee commit 0bc3daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/push_to_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def main(config: DictConfig) -> None:

# Ensure that there is one sample in the
# dataset for each processed case
assert dataset.num_rows["train"] == _count_folders_in_dir(
assert dataset.num_rows["train"] == count_folders_in_dir(
Path(config.paths.data_processed_dir)
)

dataset.push_to_hub(config.hf_hub, private=True)


def _count_folders_in_dir(dir: Path) -> int:
def count_folders_in_dir(dir: Path) -> int:
return len([f for f in dir.iterdir() if f.is_dir()])


Expand Down

0 comments on commit 0bc3daf

Please sign in to comment.