statisticalbiotechnology / triqler

The triqler (TRansparent Identification-Quantification-linked Error Rates)'s source and example code
Apache License 2.0
19 stars 10 forks source link

Python 3 error in runningMean() #12

Closed const-ae closed 4 years ago

const-ae commented 4 years ago

Hi Matthew,

I noticed that under Python 3 the runningMean() fails on line 70 with an error message:

TypeError: can't multiply sequence by non-int of type 'float'

I believe this is due to a change how Python 3 handles int and float conversions:

image

Best, Constantin

MatthewThe commented 4 years ago

Thanks for reporting this! Strange that I haven't encountered this error before even with Python3. I'll see if I can reproduce the error, but I guess there is no harm in adding the extra int() regardless.

MatthewThe commented 4 years ago

I could indeed reproduce the error, and adding the int() function indeed solved the problem. Thanks again for the help!