Changeset 2462 for trunk/imports/G2pwd_csv.py
- Timestamp:
- Sep 8, 2016 10:08:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2pwd_csv.py
r2133 r2462 26 26 def __init__(self): 27 27 super(self.__class__,self).__init__( # fancy way to self-reference 28 extensionlist=('.csv', ),28 extensionlist=('.csv','.xy','.XY',), 29 29 strictExtension=True, 30 formatName = 'comma/tab separated (.csv)',30 formatName = 'comma/tab/semicolon separated', 31 31 longFormatName = 'Worksheet-type .csv powder data file' 32 32 ) … … 44 44 begin = True 45 45 for i,S in enumerate(filepointer): 46 vals = S.replace(',',' '). split()46 vals = S.replace(',',' ').replace(';',' ').split() 47 47 if len(vals) < 2 and i > 0: 48 48 print 'Line '+str(i+1)+' cannot be read:\n\t'+S
Note: See TracChangeset
for help on using the changeset viewer.