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