Exemplo n.º 1
0
 def _(
     calling_file: Optional[str],
     calling_module: Optional[str],
     task_function: Optional[TaskFunction],
     config_path: Optional[str],
     config_name: Optional[str],
     overrides: Optional[List[str]],
     strict: Optional[bool] = None,
     temp_dir: Optional[Path] = None,
 ) -> SweepTaskFunction:
     sweep = SweepTaskFunction()
     sweep.calling_file = calling_file
     sweep.calling_module = calling_module
     sweep.task_function = task_function
     sweep.config_path = config_path
     sweep.config_name = config_name
     sweep.strict = strict
     sweep.overrides = overrides or []
     sweep.temp_dir = str(temp_dir)
     return sweep
Exemplo n.º 2
0
 def _(
     calling_file: Optional[str],
     calling_module: Optional[str],
     task_function: Optional[TaskFunction],
     config_path: Optional[str],
     config_name: Optional[str],
     overrides: Optional[List[str]],
     temp_dir: Optional[Path] = None,
     configure_logging: bool = False,
 ) -> SweepTaskFunction:
     sweep = SweepTaskFunction()
     sweep.calling_file = calling_file
     sweep.calling_module = calling_module
     sweep.task_function = task_function
     sweep.config_path = config_path
     sweep.config_name = config_name
     sweep.overrides = overrides or []
     sweep.temp_dir = str(temp_dir)
     sweep.configure_logging = configure_logging
     return sweep