From 310f062b08ddb6ab5b2b7be2d89649e5b859ebb0 Mon Sep 17 00:00:00 2001
From: Colm Talbot <colm.talbot@ligo.org>
Date: Thu, 13 Oct 2022 14:11:44 +0000
Subject: [PATCH] Add py310 tests and fix broken pymc kwarg

---
 .gitlab-ci.yml                 | 4 ++--
 bilby/core/sampler/pymc.py     | 1 -
 test/core/sampler/pymc_test.py | 2 --
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6bcd9c587..74b7141b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -145,7 +145,7 @@ python-3.9:
       - htmlcov/
     expire_in: 30 days
 
-.python-3.10:
+python-3.10:
   <<: *unit-test
   needs: ["basic-3.10", "precommits-py3.10"]
   image: containers.ligo.org/lscsoft/bilby/v2-bilby-python310
@@ -169,7 +169,7 @@ python-3.9-samplers:
   needs: ["basic-3.9", "precommits-py3.9"]
   image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39
 
-.python-3.10-samplers:
+python-3.10-samplers:
   <<: *test-sampler
   needs: ["basic-3.10", "precommits-py3.10"]
   image: containers.ligo.org/lscsoft/bilby/v2-bilby-python310
diff --git a/bilby/core/sampler/pymc.py b/bilby/core/sampler/pymc.py
index 95a57dd4e..9472d3ebb 100644
--- a/bilby/core/sampler/pymc.py
+++ b/bilby/core/sampler/pymc.py
@@ -61,7 +61,6 @@ class Pymc(MCMCSampler):
         n_init=200000,
         initvals=None,
         trace=None,
-        chain_idx=0,
         chains=2,
         cores=1,
         tune=500,
diff --git a/test/core/sampler/pymc_test.py b/test/core/sampler/pymc_test.py
index c904e1fd8..3ef4fac80 100644
--- a/test/core/sampler/pymc_test.py
+++ b/test/core/sampler/pymc_test.py
@@ -33,7 +33,6 @@ class TestPyMC(unittest.TestCase):
             n_init=200000,
             initvals=None,
             trace=None,
-            chain_idx=0,
             chains=2,
             cores=1,
             tune=500,
@@ -57,7 +56,6 @@ class TestPyMC(unittest.TestCase):
             n_init=200000,
             initvals=None,
             trace=None,
-            chain_idx=0,
             chains=2,
             cores=1,
             tune=500,
-- 
GitLab