diff --git a/xfel_calibrate/finalize.py b/xfel_calibrate/finalize.py index 3ac05184c4f31220499e5c8e6d8da4d0b0ea10f7..6bdc1117cc5eba7ce18e08300044e41ad7cd2cee 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