50 self.msg.info("Settings before and after initialisation of Pythia8 don't match, because you asked PartonShowers:model = %s", requestedsettings["PartonShowers:model"])
51else:
52 self.msg.warning("Settings before and after initialisation of Pythia8 don't match.")
53with open("Settings_before.log") as f1:
54 f1_lines = f1.read().splitlines()
55with open("Settings_after.log") as f2:
56 f2_lines = f2.read().splitlines()
57# Find and print the diff:
58if (len(f1_lines) == len(f2_lines)):
59for iline in range(len(f1_lines)):
60if (f1_lines[iline]!=f2_lines[iline]):
61if f2_lines[iline].split("=")[0] in requestedsettings:
102 self.msg.info("Number of particles before and after Pythia8 initialisation matches ( %d )", particles1.length)
103else:
104 self.msg.warning("Mismatch in number of particles before and after Pythia8 initialisation. Before: %d , after: %d", particles1.length, particles2.length)