Changeset 730c9eb in sasview
- Timestamp:
- Jul 15, 2009 11:40:17 AM (16 years ago)
- 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:
- b9d5f88
- Parents:
- 058b2d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/ascii_reader.py
r3aed0eb r730c9eb 22 22 class Reader: 23 23 """ 24 Class to load ascii files (2 or 3columns)24 Class to load ascii files (2, 3 or 4 columns) 25 25 """ 26 26 ## File type … … 55 55 56 56 #Jae could not find python universal line spliter: keep the below for now 57 # some ascii data has \r line separator, try it when it has only oneline57 # some ascii data has \r line separator, try it when the data is on only one long line 58 58 if len(lines) < 2 : 59 59 lines = buff.split('\r') … … 94 94 #Initialize counters for data lines and header lines. 95 95 is_data = False #Has more than 3 lines 96 mum_data_lines = 3# More than "3" lines of data is considered as actual data unless that is the only data96 mum_data_lines = 10 # More than "3" lines of data is considered as actual data unless that is the only data 97 97 98 98 i=-1 # To count # of current data candidate lines
Note: See TracChangeset
for help on using the changeset viewer.