Bopytex/bopytex/planner/naming.py

15 lines
274 B
Python
Raw Normal View History

2022-04-09 20:46:09 +00:00
def template2source(template: str, metadatas: dict):
return metadatas["number"] + template[3:]
def corr(source):
return "corr_" + source
def source2pdf(source):
return source[:-4] + ".pdf"
def join(template):
return source2pdf("joined" + template[3:])