Feat: add stat for templates

This commit is contained in:
Bertrand Benjamin 2022-07-20 16:45:21 +02:00
parent 083831acdf
commit b5f7cdb0cf
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import logging
from pathlib import Path from pathlib import Path
import pytex import pytex
from mapytex import render, Expression, random from mapytex import render, Expression, random, stat
import bopytex.filters as filters import bopytex.filters as filters
import random as rd import random as rd
@ -30,6 +30,7 @@ def setup():
mapytex_tools = { mapytex_tools = {
"Expression": Expression, "Expression": Expression,
"rdm": random, "rdm": random,
"stat": stat,
"random": rd, "random": rd,
} }
pytex.update_export_dict(mapytex_tools) pytex.update_export_dict(mapytex_tools)
@ -198,6 +199,7 @@ def produce_and_compile(options):
}) })
if not options["no_compile"]: if not options["no_compile"]:
logger.debug("Compiling")
for prefix in ["", "corr_"]: for prefix in ["", "corr_"]:
key = prefix + "texfile" key = prefix + "texfile"
try: try: