Changeset 86d13b5 in sasview for src/sans/dataloader


Ignore:
Timestamp:
Nov 21, 2013 9:30:08 AM (11 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1327c9b
Parents:
76263a5
Message:

Update ascii reader to support semi-colon delimited files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/dataloader/readers/ascii_reader.py

    rffbe487 r86d13b5  
    124124                lentoks = 2 
    125125                for line in lines: 
     126                    # Initial try for CSV (split on ,) 
    126127                    toks = line.split(',') 
     128                    # Now try SCSV (split on ;) 
     129                    if len(toks) < 2: 
     130                        toks = line.split(';') 
     131                    # Now go for whitespace                     
    127132                    if len(toks) < 2: 
    128133                        toks = line.split() 
Note: See TracChangeset for help on using the changeset viewer.