Changeset 121c224 in sasview
- Timestamp:
- May 21, 2011 11:52:27 AM (14 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:
- f2d9e76
- Parents:
- da96629
- Location:
- DataLoader/readers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/abs_reader.py
ra7a5886 r121c224 229 229 if len(x) == 0: 230 230 raise ValueError, "ascii_reader: could not load file" 231 output.x = x 232 output.y = y 233 output.dy = dy 234 output.dx = dx 231 232 # Zeros in dx, dy 233 if not numpy.all(dx==0): 234 dx[dx==0] = _ZERO 235 if not numpy.all(dy==0): 236 dy[dy==0] = _ZERO 237 238 output.x = x[x!=0] 239 output.y = y[x!=0] 240 output.dy = dy[x!=0] 241 output.dx = dx[x!=0] 235 242 if data_conv_q is not None: 236 243 output.xaxis("\\rm{Q}", output.x_unit) -
DataLoader/readers/ascii_reader.py
rda96629 r121c224 330 330 dy[dy==0] = _ZERO 331 331 #Data 332 output.x = x 333 output.y = y 334 output.dy = dy if has_error_dy == True else numpy.zeros(len(y))335 output.dx = dx if has_error_dx == True else numpy.zeros(len(x))332 output.x = x[x!=0] 333 output.y = y[x!=0] 334 output.dy = dy[x!=0] if has_error_dy == True else numpy.zeros(len(y)) 335 output.dx = dx[x!=0] if has_error_dx == True else numpy.zeros(len(x)) 336 336 337 337 if data_conv_q is not None: -
DataLoader/readers/cansas_reader.py
rda96629 r121c224 555 555 dxw = numpy.append(dxw, _dxw) 556 556 # Zeros in dx, dy 557 dx[dx==0] = _ZERO 558 dy[dy==0] = _ZERO 559 560 data_info.x = x 561 data_info.y = y 562 data_info.dx = dx 563 564 data_info.dy = dy 565 data_info.dxl = dxl 566 data_info.dxw = dxw 557 if not numpy.all(dx==0): 558 dx[dx==0] = _ZERO 559 if not numpy.all(dy==0): 560 dy[dy==0] = _ZERO 561 562 data_info.x = x[x!=0] 563 data_info.y = y[x!=0] 564 data_info.dx = dx[x!=0] 565 566 data_info.dy = dy[x!=0] 567 data_info.dxl = dxl[x!=0] 568 data_info.dxw = dxw[x!=0] 567 569 568 570 data_conv_q = None
Note: See TracChangeset
for help on using the changeset viewer.