From b2d818925deccb059e6a30ec68848bb28ffade63 Mon Sep 17 00:00:00 2001
From: Matthew Pitkin <matthew.pitkin@ligo.org>
Date: Tue, 2 Apr 2019 14:14:44 +0100
Subject: [PATCH] Append combined to the result label for the combined samples

---
 bilby/core/result.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bilby/core/result.py b/bilby/core/result.py
index 657eb66ed..ed8dd7996 100644
--- a/bilby/core/result.py
+++ b/bilby/core/result.py
@@ -1288,6 +1288,10 @@ class ResultList(object):
             # get first result
             result = deepcopy(self.results[0])
 
+        # append 'combined' to the label
+        if result.label is not None:
+            result.label += 'combined'
+
         # check all results are equivalent
         sampler = result.sampler
         if not np.all([res.sampler == sampler for res in self]):
-- 
GitLab