From f8c9f20762afab88855f72da0ccfa1857ad13ad6 Mon Sep 17 00:00:00 2001 From: Jeff MacKinnon Date: Fri, 31 Jan 2025 12:37:43 -0400 Subject: [PATCH] Updated to include output folder af_labels --- jepl/jepl_templates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jepl/jepl_templates.py b/jepl/jepl_templates.py index b62d0ea..ac4b155 100644 --- a/jepl/jepl_templates.py +++ b/jepl/jepl_templates.py @@ -85,7 +85,7 @@ def af_label(equipment,working_distance,incident_energy,af_boundary,energy_level with open(filename, mode="w", encoding="utf-8") as message: message.write(content) -def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",project="Arc Flash Warning Label",project_num="2500",DC=False,fixedElectrode = True, SI=True,project_year=2015,test=False): +def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",project="Arc Flash Warning Label",project_num="2500",DC=False,fixedElectrode = True, SI=True,project_year=2015,output_folder='',test=False): from datetime import date date = date.today() @@ -148,9 +148,9 @@ def af_labels(results_csv,author="JMK Engineering Inc.",warning="warning",projec #template = environment.get_template("testblock.txt") if test == True: - filename = "test"+str(date) + "-"+project_num+"-label-ArcFlash.tex" + filename = output_folder +"test"+str(date) + "-"+project_num+"-label-ArcFlash.tex" else: - filename = str(date) + "-"+project_num+"-label-ArcFlash.tex" + filename = output_folder+str(date) + "-"+project_num+"-label-ArcFlash.tex" context = {"results":results,"project":label_info}