ericcfields / pytictoc

MATLAB style tic and toc timing for Python
Other
7 stars 2 forks source link

`'function' object has no attribute 'toc'` #2

Open rleyvasal opened 2 years ago

rleyvasal commented 2 years ago

The following code gives the error message 'function' object has no attribute 'toc'

from pytictoc import TicToc
t = TicToc()
t.tic()
from datar.all import  * 
from pipda import options,register_verb
from datar.datasets import mtcars
import cufflinks as cf
iplot = register_verb(lambda df, *args, **kwargs: df.iplot(*args, **kwargs))
t.toc()
Pyponou commented 2 years ago

A bit too late but : what if you remove your imports ?

Maybe you have a function t() in datar.all