From fce8a3936d1cc10e11cb56ec9932349f1a51da28 Mon Sep 17 00:00:00 2001 From: Karim Ahmed <karim.ahmed@xfel.eu> Date: Thu, 19 Nov 2020 12:36:21 +0100 Subject: [PATCH] MR comments --- xfel_calibrate/finalize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xfel_calibrate/finalize.py b/xfel_calibrate/finalize.py index 3ac05184c..6bdc1117c 100644 --- a/xfel_calibrate/finalize.py +++ b/xfel_calibrate/finalize.py @@ -205,8 +205,8 @@ def make_report(run_path: str, tmp_path: str, out_path: str, project: str, """ run_path = path.abspath(run_path) report_path, report_name = path.split(report_to) - - if report_path == '': + + if not report_path: report_path = out_path try: @@ -305,7 +305,7 @@ def make_report(run_path: str, tmp_path: str, out_path: str, project: str, except CalledProcessError: print("Failed to make pdf documentation") - print("Temp files will not be deleted and " + + print("Temp files will not be deleted and " f"can be inspected at: {run_path}") return -- GitLab