From 817acd99c8ff7682935a674977b2bca02e6794a5 Mon Sep 17 00:00:00 2001
From: Soumen Roy <soumen.roy@ligo.org>
Date: Wed, 14 Feb 2024 17:22:10 +0000
Subject: [PATCH] BUGFIX: set queue_size from kwargs to change npool while the
 run is in progress

---
 AUTHORS.md                    | 1 +
 bilby/core/sampler/dynesty.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/AUTHORS.md b/AUTHORS.md
index eae6d65dc..e2c5539d4 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -81,6 +81,7 @@ Sharan Banagiri
 Shichao Wu
 Simon Stevenson
 Soichiro Morisaki
+Soumen Roy
 Stephen R Green
 Sumeet Kulkarni
 Sylvia Biscoveanu
diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py
index d8910a907..c2d88d5fc 100644
--- a/bilby/core/sampler/dynesty.py
+++ b/bilby/core/sampler/dynesty.py
@@ -735,6 +735,7 @@ class Dynesty(NestedSampler):
                 self.sampler.nqueue = -1
                 self.start_time = self.sampler.kwargs.pop("start_time")
                 self.sampling_time = self.sampler.kwargs.pop("sampling_time")
+                self.sampler.queue_size = self.kwargs["queue_size"]
                 self.sampler.pool = self.pool
                 if self.pool is not None:
                     self.sampler.M = self.pool.map
-- 
GitLab