Skip to content

Commit

Permalink
[ASSET-20] Fix the structure of package files (#21)
Browse files Browse the repository at this point in the history
* ASSET-20 Fix the structure of files

Signed-off-by: jormal <[email protected]>

* ASSET-20 Add `libraries.utils` to package

Signed-off-by: jormal <[email protected]>

---------

Signed-off-by: jormal <[email protected]>
  • Loading branch information
jormal authored Apr 24, 2024
1 parent c43bf20 commit fbe23de
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from argparse import ArgumentParser

from libraries.preprocess import run_preprocess
from libraries.preprocess.runner import run_preprocess

OPERATION_DICT = {"preprocess": run_preprocess}
"""The dictionary of operations application supports."""
Expand Down
Empty file.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions libraries/preprocess.py → libraries/preprocess/runner.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from libraries.models.asset import Asset
from libraries.models.network import Network
from libraries.models.protocol import Protocol
from libraries.utils.enum_info import update_id_enum
from libraries.preprocess.enum_info import update_id_enum
from libraries.preprocess.image import get_base_image_list, create_downscaled_image
from libraries.utils.file import PWD
from libraries.utils.image import get_base_image_list, create_downscaled_image


def __run_image_preprocess() -> None:
Expand All @@ -24,6 +24,6 @@ def __run_enum_preprocess() -> None:


def run_preprocess() -> None:
"""Run preprocess list."""
"""Run a preprocessing list."""
__run_image_preprocess()
__run_enum_preprocess()
2 changes: 1 addition & 1 deletion libraries/utils/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read_requirements(key: str) -> list[str]:
return ref_reqs + reqs


packages = ["libraries.models"]
packages = ["libraries.models", "libraries.utils"]
"""List of packages to be used by the users."""

install_require_key = "essential"
Expand Down

0 comments on commit fbe23de

Please sign in to comment.