From: Pau <vim...@go...> - 2011-05-03 20:53:46
|
THANKS!! I am not a native speaker and sometimes I find it very hard to find a keyword to look for... that tip was excellent, thank you a lot On 3 May 2011 22:27, Buchholz, Greg <gbu...@in...> wrote: >> From: Pau [mailto:vim...@go...] >> >> PS: I thought I would probably give a better example >> >> The goal is to have all the data files plotted in a single graph > > import glob > > for filename in glob.glob('*.dat'): > if 'e' in set(filename): #or whatever > #do something for files that have an 'e' in their name > else: > #do something else > loadtxt(filename) #yada, yada, yada > scatter() #etc. > |