Skip to content

Commit

Permalink
Merged branch master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleAalbers committed Feb 28, 2017
2 parents 11a943f + 896ac8f commit ee44389
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pax/plugins/io/WaveformSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ def simulate_single_event(self, instructions):
# generate the after pulse
# currently make it simple, assuming s2 after pulses
# will not generate further s2 after pulses.
self.s2_after_pulses(g4_id=q['g4_id'])
# If there were no instructions, there is no g4_id, but there will also be no photons,
# so running this is pointless.
if len(instructions):
self.s2_after_pulses(g4_id=q['g4_id'])

event = self.simulator.make_pax_event()
if hasattr(self, 'dataset_name'):
Expand Down

0 comments on commit ee44389

Please sign in to comment.