Skip to content

Commit a70d70d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 12a7598 commit a70d70d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

examples/python_large_output/download_output_file.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def download_files(client, project_name):
4444
log.info(f"Downloading files to {out_path}")
4545

4646
jms_api = JmsApi(client)
47-
project = jms_api.get_project_by_name(name=project_name)
47+
project = jms_api.get_project_by_name(name=project_name)
4848
project = jms_api.get_project(id=project.id)
4949

5050
log.info(f"Project id: {project.id}")
@@ -66,9 +66,9 @@ def download_files(client, project_name):
6666
fpath = os.path.join(out_path, f"task_{task.id}")
6767
log.info(f"Download output file {f.evaluation_path} to {fpath}")
6868
start = time.process_time()
69-
project_api.download_file(file=f, target_path=fpath)
70-
log.info(f"Time taken to download output file: {(time.time() - start):.2f} seconds"
71-
)
69+
project_api.download_file(file=f, target_path=fpath)
70+
log.info(f"Time taken to download output file: {(time.time() - start):.2f} seconds")
71+
7272

7373
if __name__ == "__main__":
7474

@@ -90,4 +90,4 @@ def download_files(client, project_name):
9090
download_files(client=client, project_name=args.name)
9191

9292
except HPSError as e:
93-
log.error(str(e))
93+
log.error(str(e))

examples/python_large_output/project_setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ def create_project(client, name, use_exec_script, python_version=None) -> Projec
188188
client = Client(url=args.url, username=args.username, password=args.password)
189189

190190
try:
191-
create_project(client, name=args.name, use_exec_script=args.use_exec_script, python_version=args.python_version)
191+
create_project(
192+
client,
193+
name=args.name,
194+
use_exec_script=args.use_exec_script,
195+
python_version=args.python_version,
196+
)
192197
except HPSError as e:
193198
log.error(str(e))

0 commit comments

Comments
 (0)