From 101d3a50ee729144f7f74d74d06e6abf492fbb0e Mon Sep 17 00:00:00 2001
From: Johannes Schumann <johannes.schumann@fau.de>
Date: Wed, 21 Apr 2021 22:34:42 +0200
Subject: [PATCH] Fix test (target A range)

---
 km3buu/tests/test_jobcard.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/km3buu/tests/test_jobcard.py b/km3buu/tests/test_jobcard.py
index 708f7e8..ff5c04d 100644
--- a/km3buu/tests/test_jobcard.py
+++ b/km3buu/tests/test_jobcard.py
@@ -48,8 +48,8 @@ class TestJobcard(unittest.TestCase):
 class TestNeutrinoJobcard(unittest.TestCase):
     def setUp(self):
         self.test_fluxfile = TemporaryFile()
-        self.test_Z = np.random.randint(0, 100)
-        self.test_A = np.random.randint(0, 100)
+        self.test_Z = np.random.randint(1, 100)
+        self.test_A = np.random.randint(self.test_Z, 100)
         self.test_energy_min = np.random.uniform(0.0, 100.0)
         self.test_energy_max = np.random.uniform(self.test_energy_min, 100.0)
         self.photon_propagation_flag = np.random.choice([True, False])
-- 
GitLab