Ignore:
Timestamp:
Sep 8, 2016 11:17:54 AM (6 years ago)
Author:
toby
Message:

allow comma & semicolon for .xye; validate .csv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2pwd_xye.py

    r2341 r2463  
    5151                    begin = False
    5252                # valid line to read?
    53             vals = S.split()
     53            #vals = S.split()
     54            vals = S.replace(',',' ').replace(';',' ').split()
    5455            if len(vals) == 2 or len(vals) == 3:
    5556                continue
     
    9091                        begin = False
    9192                # valid line to read
    92                 vals = S.split()
     93                #vals = S.split()
     94                vals = S.replace(',',' ').replace(';',' ').split()
    9395                if len(vals) < 2:
    9496                    print 'Line '+str(i+1)+' cannot be read:\n\t'+S
Note: See TracChangeset for help on using the changeset viewer.