boilercv_pipeline.equations.convert_pngs_to_latex

boilercv_pipeline.equations.convert_pngs_to_latex#

Convert PNGs to LaTeX.

Module Contents#

Functions#

main

default

parse_equations

Parse equations.

convert

Convert PNGs to LaTeX.

sanitize

Sanitize LaTeX forms.

Data#

PNG_PARSER

Path to converter script suitable for subprocess.run invocation.

INDEX

Extra index URL for PyTorch and CUDA dependencies.

APP

CLI.

API#

boilercv_pipeline.equations.convert_pngs_to_latex.PNG_PARSER#

None

Path to converter script suitable for subprocess.run invocation.

boilercv_pipeline.equations.convert_pngs_to_latex.INDEX#

https://download.pytorch.org/whl/cu121

Extra index URL for PyTorch and CUDA dependencies.

boilercv_pipeline.equations.convert_pngs_to_latex.APP#

‘App(…)’

CLI.

boilercv_pipeline.equations.convert_pngs_to_latex.main()#
boilercv_pipeline.equations.convert_pngs_to_latex.default(
corr: boilercv.correlations.types.Corr = 'beta',
overwrite: bool = False,
)#
boilercv_pipeline.equations.convert_pngs_to_latex.parse_equations(
equations: boilercv.correlations.models.Equations[str],
symbols: tuple[str, ...],
pngs: pathlib.Path,
overwrite: bool,
) boilercv.correlations.models.Equations[str]#

Parse equations.

boilercv_pipeline.equations.convert_pngs_to_latex.convert(
forms: boilercv.correlations.models.EquationForms[str],
png: pathlib.Path,
symbols: tuple[str, ...],
) boilercv.correlations.models.EquationForms[str]#

Convert PNGs to LaTeX.

boilercv_pipeline.equations.convert_pngs_to_latex.sanitize(
forms: dict[boilercv.correlations.types.Kind, str],
symbols: tuple[str, ...],
) boilercv.morphs.Morph[boilercv.correlations.types.Kind, str]#

Sanitize LaTeX forms.