From a84ed1939781fcd3e4fdfcad44938968176d7b33 Mon Sep 17 00:00:00 2001
From: Alexandre Goettel <alexandresebastien.goettel@ligo.org>
Date: Mon, 26 Feb 2024 17:25:52 +0000
Subject: [PATCH] MAINT: fix typo that printed wrong spin information in
 gw/source.py

---
 AUTHORS.md         | 1 +
 bilby/gw/source.py | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/AUTHORS.md b/AUTHORS.md
index e2c5539d4..e1f2fe438 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -97,3 +97,4 @@ Marc Penuliar
 Andrew Fowlie
 Martin White
 Peter Tsun-Ho Pang
+Alexandre Sebastien Goettel
diff --git a/bilby/gw/source.py b/bilby/gw/source.py
index 84b1a3e9d..9c6dff236 100644
--- a/bilby/gw/source.py
+++ b/bilby/gw/source.py
@@ -205,7 +205,7 @@ def gwsignal_binary_black_hole(frequency_array, mass_1, mass_2, luminosity_dista
             ]
             if EDOM:
                 failed_parameters = dict(mass_1=mass_1, mass_2=mass_2,
-                                         spin_1=(spin_1x, spin_2y, spin_1z),
+                                         spin_1=(spin_1x, spin_1y, spin_1z),
                                          spin_2=(spin_2x, spin_2y, spin_2z),
                                          luminosity_distance=luminosity_distance,
                                          iota=iota, phase=phase,
@@ -614,7 +614,7 @@ def _base_lal_cbc_fd_waveform(
             EDOM = (e.args[0] == 'Internal function call failed: Input domain error')
             if EDOM:
                 failed_parameters = dict(mass_1=mass_1, mass_2=mass_2,
-                                         spin_1=(spin_1x, spin_2y, spin_1z),
+                                         spin_1=(spin_1x, spin_1y, spin_1z),
                                          spin_2=(spin_2x, spin_2y, spin_2z),
                                          luminosity_distance=luminosity_distance,
                                          iota=iota, phase=phase,
@@ -1124,7 +1124,7 @@ def _base_waveform_frequency_sequence(
             EDOM = (e.args[0] == 'Internal function call failed: Input domain error')
             if EDOM:
                 failed_parameters = dict(mass_1=mass_1, mass_2=mass_2,
-                                         spin_1=(spin_1x, spin_2y, spin_1z),
+                                         spin_1=(spin_1x, spin_1y, spin_1z),
                                          spin_2=(spin_2x, spin_2y, spin_2z),
                                          luminosity_distance=luminosity_distance,
                                          iota=iota, phase=phase)
-- 
GitLab