Skip to content

Commit

Permalink
remove the progress bar from the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudabedinifar committed Nov 13, 2024
1 parent 218949f commit 73bad3e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kielmat/datasets/keepcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from kielmat.utils.kielmat_dataclass import REQUIRED_COLUMNS
import logging
import warnings
from tqdm import tqdm

# Dict of valid tracked points for the Keep Control dataset for each tracking system
VALID_TRACKED_POINTS = {
Expand Down Expand Up @@ -85,12 +84,10 @@


def fetch_dataset(
progressbar: bool = True,
dataset_path: str | Path = Path(__file__).parent / "_keepcontrol",
) -> None:
"""Fetch the Keep Control dataset from the OpenNeuro repository.
Args:
progressbar (bool, optional): Whether to display a progressbar. Defaults to True.
dataset_path (str | Path, optional): The path where the dataset is stored. Defaults to Path(__file__).parent/"_keepcontrol".
"""
dataset_path = Path(dataset_path) if isinstance(dataset_path, str) else dataset_path
Expand All @@ -107,9 +104,6 @@ def fetch_dataset(
target_dir=dataset_path,
)

else:
if progressbar:
print("Dataset already downloaded, skipping download.")
return


Expand Down

0 comments on commit 73bad3e

Please sign in to comment.