The proposed fix was implemented. Another possible solution, as poited by Chiara, would be just to add an else statement.
if poisson:
mean = rss.random.poisson(
float_cast(
mean,
'The 'mean' argument must be castable to type of float!'))
else:
n_events = int_cast(
mean,
'The 'mean' argument must be castable to type of int!')
I choose the first solution for consistency with the one already implemented in the analog class MCMultiDatasetSignalGenerator.
The proposed fix was implemented. Another possible solution, as poited by Chiara, would be just to add an else statement.
I choose the first solution for consistency with the one already implemented in the analog class MCMultiDatasetSignalGenerator.