Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed May 22, 2024
1 parent ac553c2 commit cb9b8d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions sed/core/user_dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
USER_LOG_PATH (pathlib.Path): The path to the user-specific log directory.
USER_DATA_PATH (pathlib.Path): The path to the user-specific data directory.
"""
from __future__ import annotations

from pathlib import Path

from platformdirs import user_config_path
Expand Down
7 changes: 1 addition & 6 deletions sed/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ def set_data_path(data_name: str, data_path: str, existing_data_path: str) -> st

# Set data path if not provided
if data_path is None:
data_path = existing_data_path or str(
user_paths["data"].joinpath(
"datasets",
data_name,
),
)
data_path = existing_data_path or str(user_paths["data"] / data_name)
path_source = "existing" if existing_data_path else "default"
logger.info(f'Using {path_source} data path for "{data_name}": "{data_path}"')

Expand Down

0 comments on commit cb9b8d5

Please sign in to comment.