Ignore:
Timestamp:
Jan 20, 2012 9:10:15 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

reverted taking x=0 point: need more careful thought

Location:
sansdataloader/src/sans/dataloader/readers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sansdataloader/src/sans/dataloader/readers/abs_reader.py

    ra90df05 raac129aa  
    1919except: 
    2020    has_converter = False 
    21 _ZERO = 1e-16   
     21     
    2222class Reader: 
    2323    """ 
     
    229229                if len(x) == 0: 
    230230                    raise ValueError, "ascii_reader: could not load file" 
    231                 x[x==0] = _ZERO 
    232                 y[x==0] = _ZERO 
     231                 
    233232                output.x = x[x!=0] 
    234233                output.y = y[x!=0] 
  • sansdataloader/src/sans/dataloader/readers/ascii_reader.py

    ra90df05 raac129aa  
    333333                    dy[dy==0] = _ZERO 
    334334                #Data     
    335                 x[x==0] = _ZERO 
    336                 y[x==0] = _ZERO 
    337335                output.x = x[x!=0] 
    338336                output.y = y[x!=0] 
  • sansdataloader/src/sans/dataloader/readers/cansas_reader.py

    ra90df05 raac129aa  
    559559        if not numpy.all(dy==0): 
    560560            dy[dy==0] = _ZERO 
    561         x[x==0] = _ZERO 
    562         y[x==0] = _ZERO 
     561        
    563562        data_info.x = x[x!=0] 
    564563        data_info.y = y[x!=0] 
Note: See TracChangeset for help on using the changeset viewer.