Beispiel #1
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # prepend search path to override env default
     search_path.prepend(
         provider="test-env-defaults",
         path="pkg://hydra_plugins.env_defaults.conf",
         anchor="hydra",
     )
Beispiel #2
0
    def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
        # Appends the search path for this plugin to the end of the search path
        profile_path = os.path.join(get_root_dir(), "hydra_configs")
        profile_path_user = os.path.join(DEFAULT_CONFIG_FOLDER, "hydra_configs")

        search_path.append(provider="mephisto-profiles", path=f"file://{profile_path}")
        search_path.append(
            provider="mephisto-profiles-user", path=f"file://{profile_path_user}"
        )
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     # Note that foobar/conf is outside of the example plugin module.
     # There is no requirement for it to be packaged with the plugin, it just needs
     # be available in a package.
     # Remember to verify the config is packaged properly (build sdist and look inside,
     # and verify MANIFEST.in is correct).
     search_path.append(provider="example-searchpath-plugin",
                        path="pkg://arbitrary_package/conf")
Beispiel #4
0
 def __init__(self, config_search_path: ConfigSearchPath) -> None:
     self.sources = []
     for search_path in config_search_path.get_path():
         assert search_path.path is not None
         assert search_path.provider is not None
         scheme = self._get_scheme(search_path.path)
         source_type = SourcesRegistry.instance().resolve(scheme)
         self.sources.append(source_type(search_path.provider, search_path.path))
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     """implement the SearchPathPlugin interface"""
     search_path.append("project",
                        "pkg://tutorial_maze_env.part03_maze_env.conf")
     search_path.append("project",
                        "pkg://tutorial_maze_env.part04_events.conf")
     search_path.append("project",
                        "pkg://tutorial_maze_env.part06_struct_env.conf")
Beispiel #6
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(
         "hydra-submitit-launcher",
         "pkg://hydra_plugins.hydra_submitit_launcher.conf",
     )
Beispiel #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-joblib-launcher",
         "pkg://hydra_plugins.hydra_joblib_launcher.conf",
     )
Beispiel #8
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     """implement the SearchPathPlugin interface"""
     search_path.append("project", "pkg://maze.conf")
     search_path.append("project", "pkg://maze_cartpole.conf")
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     assert isinstance(search_path, ConfigSearchPath)
     search_path.append("rating_core_lib", "pkg://rating_core_lib.config")
Beispiel #10
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(provider="gale", path="pkg://gale.conf")
     search_path.prepend(provider="gale", path="pkg://references")
     search_path.prepend(provider="gale", path="pkg://conf")
Beispiel #11
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(
         provider="classy_vision", path="pkg://classy_vision.hydra.conf"
     )
Beispiel #12
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")
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(
         provider="polymetis-plugin",
         path="pkg://polymetis/conf",
     )
Beispiel #14
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     """Add custom config to search path (part of SearchPathPlugin interface)."""
     search_path.append("project", "pkg://your_project.conf")
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     assert isinstance(search_path, ConfigSearchPath)
     search_path.append("bigpipe-response", "pkg://bigpipe_response.config")
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.prepend(provider=cls.__name__, path=str(config_dir.resolve()))
Beispiel #17
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(
         "nevergrad", "pkg://hydra_plugins.hydra_nevergrad_sweeper.conf"
     )
Beispiel #18
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.prepend(provider="vissl", path="pkg://configs")
     search_path.prepend(provider="vissl", path="file://configs")
Beispiel #19
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-sweeper",
                        "pkg://hydra_plugins.example_sweeper_plugin.conf")
Beispiel #20
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append(
         "hydra-gridengine-launcher",
         "pkg://hydra_plugins.hydra_gridengine_launcher.conf",
     )