snoplusuk / echidna

MIT License
4 stars 12 forks source link

Fixes #80. #97

Closed ashleyrback closed 8 years ago

ashleyrback commented 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.

Also updates test_scale method accordingly.

ashleyrback commented 8 years ago

@jwaterfield just a final quick PR for #80, should be quite quick to review. Cheers.

ashleyrback commented 8 years ago

@jwaterfield, there we go that should be better.

jwaterfield commented 8 years ago

Merging