Changeset 272b107 in sasview for DataLoader/readers
- Timestamp:
- Apr 10, 2009 9:55:44 PM (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:
- 3aed0eb
- Parents:
- 249bae9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/ascii_reader.py
r3617aa2 r272b107 111 111 112 112 #To reject the line when reader meets less columns of data 113 if lentoks == 3:114 _dy = float(toks[2])115 elif lentoks == 4:116 _dx = float(toks[3])113 #if lentoks == 3: 114 # _dy = float(toks[2]) 115 #elif lentoks == 4: 116 # _dx = float(toks[3]) 117 117 118 118 #Reset the header line counters … … 176 176 177 177 #If the previous columns are less than the current, mark the previous as non-data and reset the dependents. 178 if lentoks < new_lentoks : 179 if is_data == False: 178 if lentoks != new_lentoks : 179 if is_data == True: 180 break 181 else: 180 182 i = -1 181 183 i1 = 0 182 184 j = -1 183 185 j1 = -1 186 184 187 185 188 #Delete the previously stored lines of data candidates if is not data.
Note: See TracChangeset
for help on using the changeset viewer.