Changeset aac129aa in sasview for sansdataloader
- Timestamp:
- Jan 20, 2012 9:10:15 AM (13 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:
- 356d2d3
- Parents:
- e25d908
- Location:
- sansdataloader/src/sans/dataloader/readers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansdataloader/src/sans/dataloader/readers/abs_reader.py
ra90df05 raac129aa 19 19 except: 20 20 has_converter = False 21 _ZERO = 1e-1621 22 22 class Reader: 23 23 """ … … 229 229 if len(x) == 0: 230 230 raise ValueError, "ascii_reader: could not load file" 231 x[x==0] = _ZERO 232 y[x==0] = _ZERO 231 233 232 output.x = x[x!=0] 234 233 output.y = y[x!=0] -
sansdataloader/src/sans/dataloader/readers/ascii_reader.py
ra90df05 raac129aa 333 333 dy[dy==0] = _ZERO 334 334 #Data 335 x[x==0] = _ZERO336 y[x==0] = _ZERO337 335 output.x = x[x!=0] 338 336 output.y = y[x!=0] -
sansdataloader/src/sans/dataloader/readers/cansas_reader.py
ra90df05 raac129aa 559 559 if not numpy.all(dy==0): 560 560 dy[dy==0] = _ZERO 561 x[x==0] = _ZERO 562 y[x==0] = _ZERO 561 563 562 data_info.x = x[x!=0] 564 563 data_info.y = y[x!=0]
Note: See TracChangeset
for help on using the changeset viewer.