Closed ashleyrback closed 8 years ago
Modifies scale method to convert supplied num_decays to float, if it is supplied as an int. Also casts self._num_decays as float. This should prevent integer division resulting in scaling events to zero.
scale
num_decays
float
int
self._num_decays
Also updates test_scale method accordingly.
test_scale
@jwaterfield just a final quick PR for #80, should be quite quick to review. Cheers.
@jwaterfield, there we go that should be better.
Merging
Modifies
scale
method to convert suppliednum_decays
tofloat
, if it is supplied as anint
. Also castsself._num_decays
as float. This should prevent integer division resulting in scaling events to zero.Also updates
test_scale
method accordingly.