tschoonj / xmimsim

Monte Carlo simulation of energy-dispersive X-ray fluorescence spectrometers
Other
32 stars 11 forks source link

Zero pulse width is invalid #47

Closed woutdenolf closed 4 years ago

woutdenolf commented 5 years ago

I have noticed that the GUI does not allow me to save the xmsi file when the pulse width is zero. Also the xmso output of xmimsim-pymca contains a zero pulse width, which prevents me from converting it to an xmsi file with xmso2xmsi. Is there a reason why pulse width zero is considered invalid?

tschoonj commented 5 years ago

The pulse width is used whenever the user invokes xmimsim with the --enable-pile-up option. For this to work the pulse width must be greater than zero.

I will write a patch to ensure that xmimsim-pymca creates xmso files containing a non-zero pulse width.