Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support url for input asset paths #327

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stock-plugins/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ temp
__pycache__
.pytest_cache
output
.cache
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
).parent

self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = {}
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -99,7 +99,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ def __init__(
importlib.util.find_spec("test_engine_core").origin
).parent
self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = {}
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -98,7 +98,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ def __init__(
).parent

self._core_modules_path: str = core_modules_path
self._data_path: str = str(self._base_path / data_path)
self._model_path: str = str(self._base_path / model_path)
self._data_path: str = str(data_path)
self._model_path: str = str(model_path)
self._input_arguments: Dict = input_arguments
self._model_type: ModelType = model_type

if self._requires_ground_truth:
self._ground_truth_path: str = str(self._base_path / ground_truth_path)
self._ground_truth_path: str = str(ground_truth_path)
self._ground_truth: str = ground_truth
else:
self._ground_truth_path: str = ""
Expand Down Expand Up @@ -100,7 +100,7 @@ def run(self) -> None:
print("=" * 20)

# Discover available core plugins
PluginManager.discover(str(self._base_path / self._core_modules_path))
PluginManager.discover(str(self._core_modules_path))
print(f"[DETECTED_PLUGINS]: {PluginManager.get_printable_plugins()}")

# Create logger
Expand Down
Binary file not shown.
Binary file not shown.
Loading