daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with open('saurav_BPF.txt','r') as myfile:
  2.     f = myfile.read()
  3.     st = f.splitlines()
  4. st = list(map(float, st))  # converting str in a list to float
  5. tr = st[0]
  6. npts = tr.stats.npts
  7. dt = tr.stats.delta
  8. t = np.linspace(0, dt * npts, npts)
  9.    
  10. Traceback (most recent call last):
  11.   File "cwt_trial.py", line 16, in <module>
  12.     npts = tr.stats.npts
  13. AttributeError: 'float' object has no attribute 'stats'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top