Пример #1
0
def create_search_path(
    search_path: List[str] = [], abspath: bool = False
) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.append("hydra", "pkg://hydra.conf")
    for sp in search_path:
        csp.append("test", sp if not abspath else os.path.realpath(sp))
    return csp
Пример #2
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append("combined_core_lib_config", "pkg://config")
     search_path.append("combined_core_lib_compose",
                        "pkg://hydra_docker-compose.yaml")
Пример #3
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append("test_core_lib_config", "pkg://config")
     search_path.append("test_core_lib_compose", "pkg://hydra_docker-compose.yaml")
Пример #4
0
def create_search_path(
    base_list: List[Tuple[Optional[str], Optional[str]]]
) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.config_search_path = [SearchPath(x[0], x[1]) for x in base_list]
    return csp
Пример #5
0
def create_config_search_path(path: str) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.append(provider="test", path=path)
    return csp
Пример #6
0
def create_search_path(base_list):
    csp = ConfigSearchPath()
    csp.config_search_path = [SearchPath(x[0], x[1]) for x in base_list]
    return csp
Пример #7
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append(
         "hydra-example-launcher", "pkg://hydra_plugins.example_launcher.conf"
     )
Пример #8
0
 def manipulate_search_path(self, search_path: ConfigSearchPath):
     search_path.append("meta-blocks", "pkg://meta_blocks.experiment.conf")
Пример #9
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append("hydra-colorlog",
                        "pkg://hydra_plugins.hydra_colorlog.conf")