Feat: add stat for templates
This commit is contained in:
parent
083831acdf
commit
b5f7cdb0cf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user