From a7f7b410b7bd0b7a03c28b4782b1c002dce05236 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Fri, 15 Jul 2022 18:38:08 +0200 Subject: [PATCH] fix: DD4hepSimulation expected compactFile be a list (#1324) If you give a single string it iterates over the characters. This might depend on the DD4hep version. --- Examples/Python/tests/test_reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/Python/tests/test_reader.py b/Examples/Python/tests/test_reader.py index 331764176a1..a5a6958976e 100644 --- a/Examples/Python/tests/test_reader.py +++ b/Examples/Python/tests/test_reader.py @@ -317,7 +317,10 @@ def generate_input_test_edm4hep_simhit_reader(input, output): from DDSim.DD4hepSimulation import DD4hepSimulation ddsim = DD4hepSimulation() - ddsim.compactFile = input + if isinstance(ddsim.compactFile, list): + ddsim.compactFile = [input] + else: + ddsim.compactFile = input ddsim.enableGun = True ddsim.gun.direction = (1, 0, 0) ddsim.gun.distribution = "eta"