Guest User

Untitled

a guest
Jun 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  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'
Add Comment
Please, Sign In to add comment