cpcloud / ipython-autotime

Time everything in IPython
Apache License 2.0
118 stars 12 forks source link

Assertion time > 0 error #14

Closed ngtrunghuan closed 4 years ago

ngtrunghuan commented 5 years ago

Hi,

I'm a huge fan of the utility! I found it incredibly useful to do performance tuning, or even just some additional information when running automated notebooks!

Recently I seem to have encountered the error that the line assert t >= 0 was raised when running cells that contained only function definitions or simple var assignments. I don't really understand the purpose of such a line, so can we possibly remove that line from the source code if it doesn't yield much value?