(
self,
path: str,
module_type: str = "metrics",
download_config: Optional[DownloadConfig] = None,
download_mode: Optional[DownloadMode] = None,
dynamic_modules_path: Optional[str] = None,
)
| 401 | """Get the module of a local metric. The metric script is loaded from a local script.""" |
| 402 | |
| 403 | def __init__( |
| 404 | self, |
| 405 | path: str, |
| 406 | module_type: str = "metrics", |
| 407 | download_config: Optional[DownloadConfig] = None, |
| 408 | download_mode: Optional[DownloadMode] = None, |
| 409 | dynamic_modules_path: Optional[str] = None, |
| 410 | ): |
| 411 | self.path = path |
| 412 | self.module_type = module_type |
| 413 | self.name = Path(path).stem |
| 414 | self.download_config = download_config or DownloadConfig() |
| 415 | self.download_mode = download_mode |
| 416 | self.dynamic_modules_path = dynamic_modules_path |
| 417 | |
| 418 | def get_module(self) -> ImportableModule: |
| 419 | # get script and other files |
nothing calls this directly
no outgoing calls
no test coverage detected