MCPcopy Index your code
hub / github.com/PDFMathTranslate/PDFMathTranslate / __init__

Method __init__

pdf2zh/cache.py:49–54  ·  view source on GitHub ↗
(self, translate_engine: str, translate_engine_params: dict = None)

Source from the content-addressed store, hash-verified

47 return obj
48
49 def __init__(self, translate_engine: str, translate_engine_params: dict = None):
50 assert (
51 len(translate_engine) < 20
52 ), "current cache require translate engine name less than 20 characters"
53 self.translate_engine = translate_engine
54 self.replace_params(translate_engine_params)
55
56 # The program typically starts multi-threaded translation
57 # only after cache parameters are fully configured,

Callers

nothing calls this directly

Calls 1

replace_paramsMethod · 0.95

Tested by

no test coverage detected