From ff178150873d67ef73af06df43d5407cff922faa Mon Sep 17 00:00:00 2001
From: Yannick Ulrich <yannick.ulrich@psi.ch>
Date: Fri, 21 Feb 2020 08:55:55 +0100
Subject: [PATCH] #17 has undefined behaviour if multiple histograms have the
 same name

---
 pymule/vegas.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pymule/vegas.py b/pymule/vegas.py
index 0e76f1d..345e611 100644
--- a/pymule/vegas.py
+++ b/pymule/vegas.py
@@ -131,6 +131,9 @@ def importvegas(filename="", fp=None, inttype='i'):
                 continue
             if abs(delta[i]) < 1e-15:
                 continue
+
+            if names[i] in dic:
+                names[i] += '2'
             x = ouarray(
                 np.inf, -np.inf,
                 np.around(
-- 
GitLab