raspeball

Forlsag innlasting filnavn

Apr 21st, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import numpy as np
  2. from glob import glob
  3.  
  4. filenames = glob('stinavn til der filene ligger')
  5. ## glob finner alle filene i stien (directory, path, eller hva man kaller det), så man må selv avgrense
  6. filenames.sort()
  7.  
  8. arrayload = [np.loadtxt('lolxxx.dat') for fs in filenames]
  9. the_array = np.concatenate(arrayload)
Advertisement
Add Comment
Please, Sign In to add comment