From 3a192aa1beb799d5947fbd1de56f832628c478bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:47:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/python_large_output/download_output_file.py | 10 +++++----- examples/python_large_output/project_setup.py | 7 ++++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/examples/python_large_output/download_output_file.py b/examples/python_large_output/download_output_file.py index 24953afd4..13c9c1b61 100644 --- a/examples/python_large_output/download_output_file.py +++ b/examples/python_large_output/download_output_file.py @@ -44,7 +44,7 @@ def download_files(client, project_name): log.info(f"Downloading files to {out_path}") jms_api = JmsApi(client) - project = jms_api.get_project_by_name(name=project_name) + project = jms_api.get_project_by_name(name=project_name) project = jms_api.get_project(id=project.id) log.info(f"Project id: {project.id}") @@ -66,9 +66,9 @@ def download_files(client, project_name): fpath = os.path.join(out_path, f"task_{task.id}") log.info(f"Download output file {f.evaluation_path} to {fpath}") start = time.process_time() - project_api.download_file(file=f, target_path=fpath) - log.info(f"Time taken to download output file: {(time.time() - start):.2f} seconds" - ) + project_api.download_file(file=f, target_path=fpath) + log.info(f"Time taken to download output file: {(time.time() - start):.2f} seconds") + if __name__ == "__main__": @@ -90,4 +90,4 @@ def download_files(client, project_name): download_files(client=client, project_name=args.name) except HPSError as e: - log.error(str(e)) \ No newline at end of file + log.error(str(e)) diff --git a/examples/python_large_output/project_setup.py b/examples/python_large_output/project_setup.py index c79ec8446..a39baa6fb 100644 --- a/examples/python_large_output/project_setup.py +++ b/examples/python_large_output/project_setup.py @@ -188,6 +188,11 @@ def create_project(client, name, use_exec_script, python_version=None) -> Projec client = Client(url=args.url, username=args.username, password=args.password) try: - create_project(client, name=args.name, use_exec_script=args.use_exec_script, python_version=args.python_version) + create_project( + client, + name=args.name, + use_exec_script=args.use_exec_script, + python_version=args.python_version, + ) except HPSError as e: log.error(str(e))