()
| 2019 | openunmix.filtering = filtering |
| 2020 | sys.modules["openunmix"] = openunmix |
| 2021 | sys.modules["openunmix.filtering"] = filtering |
| 2022 | |
| 2023 | if "julius" not in sys.modules: |
| 2024 | julius = types.ModuleType("julius") |
| 2025 | |
| 2026 | def _resample_frac_stub(*_args: Any, **_kwargs: Any) -> Any: |
| 2027 | raise RuntimeError("julius.resample_frac stub should not be called during Demucs conversion") |
| 2028 | |
| 2029 | julius.resample_frac = _resample_frac_stub |
| 2030 | sys.modules["julius"] = julius |
| 2031 | |
| 2032 | if "dora.log" not in sys.modules: |
| 2033 | log = types.ModuleType("dora.log") |
| 2034 | |
| 2035 | def _fatal_stub(message: str) -> None: |
| 2036 | raise RuntimeError(message) |
| 2037 | |
| 2038 | log.fatal = _fatal_stub |
| 2039 | dora = types.ModuleType("dora") |
no test coverage detected