josuemtzmo / trackeddy

Tracking eddy algorithm:
http://trackeddy.readthedocs.io/
MIT License
46 stars 18 forks source link

AttributeError: module 'time' has no attribute 'clock' #8

Closed hafez-ahmad closed 3 years ago

hafez-ahmad commented 3 years ago

positive_eddies=analyseddyzt(sla,lon,lat,0,1,1,levels,preferences=preferences ,areamap=areamap,areaparms=checkarea,filters=filters ,maskopt='contour',diagnostics=False,pprint=True) AttributeError Traceback (most recent call last)

in ----> 1 positive_eddies=analyseddyzt(sla,lon,lat,0,1,1,levels,preferences=preferences 2 ,areamap=areamap,areaparms=checkarea,filters=filters 3 ,maskopt='contour',diagnostics=False,pprint=True) c:\users\hafez\miniconda3\lib\site-packages\trackeddy-0.1-py3.8.egg\trackeddy\tracking.py in analyseddyzt(data, x, y, t0, t1, tstep, levels, areamap, mask, physics, eddycenter, preferences, checkgauss, areaparms, maskopt, mode, filters, timeanalysis, destdir, saveformat, diagnostics, plotdata, pprint, debug) 508 509 if pprint == True: --> 510 pp = Printer(); 511 if len(np.shape(data)) < 3: 512 raise Exception('If you whant to analyze in time the data need to be 3d [i.e. data(t,x,y)]') c:\users\hafez\miniconda3\lib\site-packages\trackeddy-0.1-py3.8.egg\trackeddy\printfunc.py in __init__(self) 10 """ 11 def __init__(self): ---> 12 self.tic=time.clock() 13 sys.stdout.flush() 14 self.data=[] AttributeError: module 'time' has no attribute 'clock'
hafez-ahmad commented 3 years ago

I solved with just clock replacement.