From 0425feea7dfda6b250f08495c6c99b02086a6386 Mon Sep 17 00:00:00 2001 From: Andrea Roncoli <115221482+DreRnc@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:27:21 +0100 Subject: [PATCH 1/2] Fix: set local context to avoid errors resetting global start method --- src/plinder/eval/docking/write_scores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plinder/eval/docking/write_scores.py b/src/plinder/eval/docking/write_scores.py index 3c54d015..74c4d06b 100644 --- a/src/plinder/eval/docking/write_scores.py +++ b/src/plinder/eval/docking/write_scores.py @@ -212,8 +212,8 @@ def score_test_set( ) predictions = predictions[~predictions["exists"]] LOG.info(f"Running evaluation on {predictions.shape[0]} cases") - multiprocessing.set_start_method("spawn") - with multiprocessing.Pool(num_processes) as p: + ctx = multiprocessing.get_context("spawn") + with ctx.Pool(num_processes) as p: p.starmap( write_scores_as_json, [ From 92983bfae200f90fcc7f7ba5daa885d793af4cb5 Mon Sep 17 00:00:00 2001 From: Andrea Roncoli <115221482+DreRnc@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:11:53 +0100 Subject: [PATCH 2/2] Fixing trailing whitespace for code checks --- .github/workflows/docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b27156df..2644e6ed 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -4,7 +4,7 @@ on: tags: - 'v[0-9]+.[0-9]+.[0-9]+' workflow_dispatch: - + permissions: id-token: write contents: read