diff --git a/cal_tools/cal_tools/tools.py b/cal_tools/cal_tools/tools.py index ecad64db270082d6478187040db2c4c225d6b07f..a54f189bdbd6b965e0d97e1e47228eb2653d2b7b 100644 --- a/cal_tools/cal_tools/tools.py +++ b/cal_tools/cal_tools/tools.py @@ -1,15 +1,17 @@ +from collections import OrderedDict +import glob +from importlib.machinery import SourceFileLoader import os from os.path import isfile, isdir, splitext -from time import sleep -from subprocess import check_output, check_call, CalledProcessError -from shutil import copy, move, rmtree, copytree from queue import Queue -from collections import OrderedDict -import glob -from jinja2 import Template +from shutil import copy, move, rmtree, copytree +from subprocess import check_output, check_call, CalledProcessError import textwrap +from time import sleep + +from jinja2 import Template import tabulate -from importlib.machinery import SourceFileLoader + from xfel_calibrate import settings def atoi(text): @@ -220,7 +222,6 @@ def make_report(run_path, tmp_path, out_path, project, author, version, tmpl = '{} = {}\n' v = getattr(conf, var, None) if isinstance(v, str): - print(var, v) tmpl = '{} = "{}"\n' mf.write(tmpl.format(var, v)) @@ -262,7 +263,6 @@ def make_report(run_path, tmp_path, out_path, project, author, version, return print("Moving report to final location: {}".format(out_path)) for f in glob.glob(r'{}/_build/latex/*.pdf'.format(run_path)): - print(f) copy(f, out_path) print("Removing temporary files at: {}".format(tmp_path)) rmtree(tmp_path)