boilercv_pipeline.equations.convert_latex_to_sympy#

Convert LaTeX equations to SymPy equations.

Module Contents#

Functions#

main

default

parse_equations

Parse equations.

convert

Convert LaTeX equation to SymPy equation.

parse_ineq

Parse inequalities.

parse_expr

Parse expression.

sanitize_and_fold

Sanitize and fold symbolic forms.

sanitize

Sanitize symbolic forms.

Data#

LATEX_PARSER

Isolated LaTeX parser.

APP

CLI.

API#

boilercv_pipeline.equations.convert_latex_to_sympy.LATEX_PARSER#

None

Isolated LaTeX parser.

boilercv_pipeline.equations.convert_latex_to_sympy.APP#

‘App(…)’

CLI.

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

Parse equations.

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

Convert LaTeX equation to SymPy equation.

boilercv_pipeline.equations.convert_latex_to_sympy.parse_ineq(
sanitized: str,
symbols: tuple[str, ...],
interpreter: pathlib.Path,
script: pathlib.Path,
) str#

Parse inequalities.

boilercv_pipeline.equations.convert_latex_to_sympy.parse_expr(
interpreter,
script,
latex,
)#

Parse expression.

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

Sanitize and fold symbolic forms.

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

Sanitize symbolic forms.