Skip to content

Commit

Permalink
new: add auxiliary
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <7048826+neuronflow@users.noreply.github.com>
  • Loading branch information
neuronflow committed Feb 1, 2024
1 parent 1c3481d commit b59fc8b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
3 changes: 2 additions & 1 deletion brainles_aurora/inferer/inferer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
BaseConfig,
)
from brainles_aurora.utils import (
turbo_path,
download_model_weights,
remove_path_suffixes,
)

from auxiliary.turbopath import turbo_path

logger = logging.getLogger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion brainles_aurora/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .utils import turbo_path, remove_path_suffixes
from .utils import remove_path_suffixes
from .download import download_model_weights
21 changes: 0 additions & 21 deletions brainles_aurora/utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
from pathlib import Path
import os
from typing import IO
import sys


def turbo_path(path: str | Path) -> Path:
"""Make path absolute and normed
Args:
path (str | Path): input path
Returns:
Path: absolute and normed path
"""
return Path(
os.path.normpath(
os.path.abspath(
path,
)
)
)


def remove_path_suffixes(path: Path | str) -> Path:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ numpy = ">=1.23.0"
PyGithub = "^1.57"
tqdm = "^4.64.1"
path = "^16.2.0"
auxiliary ="^0.0.40"

[tool.poetry.dev-dependencies]
pytest = "^6.2"
Expand All @@ -59,4 +60,4 @@ optional = true
Sphinx = ">=7.0.0"
sphinx-copybutton = ">=0.5.2"
sphinx-rtd-theme = ">=1.3.0"
myst-parser = ">=2.0.0"
myst-parser = ">=2.0.0"

0 comments on commit b59fc8b

Please sign in to comment.