You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
544 B
18 lines
544 B
from importlib import import_module
|
|
from typing import Any
|
|
|
|
__all__ = ["compute_similarities", "get_similar_motions"]
|
|
|
|
|
|
def _lazy_import(module_name: str):
|
|
return import_module(f".{module_name}", __package__)
|
|
|
|
|
|
def compute_similarities(*args: Any, **kwargs: Any) -> Any:
|
|
module = _lazy_import("compute")
|
|
return getattr(module, "compute_similarities")(*args, **kwargs)
|
|
|
|
|
|
def get_similar_motions(*args: Any, **kwargs: Any) -> Any:
|
|
module = _lazy_import("lookup")
|
|
return getattr(module, "get_similar_motions")(*args, **kwargs)
|
|
|