Fix for the calculus of the yield
In rary-rary-rary cases, can happen that the sweighted yeld for an event is inf. So, a further check for it it's added, additionaly to the isnan already implemented.
In rary-rary-rary cases, can happen that the sweighted yeld for an event is inf. So, a further check for it it's added, additionaly to the isnan already implemented.