Changeset da96629 in sasview
- Timestamp:
- May 21, 2011 1:18:32 PM (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:
- 121c224
- Parents:
- 1ab9dc1
- Location:
- DataLoader/readers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/ascii_reader.py
ra7a5886 rda96629 23 23 except: 24 24 has_converter = False 25 _ZERO = 1e-16 25 26 26 27 class Reader: … … 323 324 if has_error_dx == True: 324 325 dx[i] = tdx[ind[i]] 326 # Zeros in dx, dy 327 if has_error_dx: 328 dx[dx==0] = _ZERO 329 if has_error_dy: 330 dy[dy==0] = _ZERO 325 331 #Data 326 332 output.x = x -
DataLoader/readers/cansas_reader.py
rfd224fd rda96629 38 38 from lxml import etree 39 39 import xml.dom.minidom 40 40 _ZERO = 1e-16 41 41 has_converter = True 42 42 try: … … 554 554 dxl = numpy.append(dxl, _dxl) 555 555 dxw = numpy.append(dxw, _dxw) 556 # Zeros in dx, dy 557 dx[dx==0] = _ZERO 558 dy[dy==0] = _ZERO 556 559 557 560 data_info.x = x 558 561 data_info.y = y 559 562 data_info.dx = dx 563 560 564 data_info.dy = dy 561 565 data_info.dxl = dxl … … 583 587 else: 584 588 data_info.yaxis("\\rm{Intensity}","cm^{-1}") 585 589 586 590 return data_info 587 591
Note: See TracChangeset
for help on using the changeset viewer.