Changeset dde2d44 in sasview


Ignore:
Timestamp:
Mar 26, 2010 6:37:42 PM (15 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:
18e6c5e
Parents:
83ad478
Message:

fixed a problem in converting errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/manipulations.py

    rc6f95bb rdde2d44  
    8181 
    8282    new_data = data2d.data.flatten() 
    83     new_err_data = data2d.err_data.flatten() 
    8483    qx_data = new_x.flatten() 
    8584    qy_data = new_y.flatten() 
    8685    q_data = numpy.sqrt(qx_data*qx_data+qy_data*qy_data) 
     86    if data2d.err_data == None or numpy.any(data2d.err_data<=0):  
     87        new_err_data = numpy.sqrt(numpy.fabs(new_data)) 
     88    else: 
     89        new_err_data = data2d.err_data.flatten() 
    8790    mask    = numpy.ones(len(new_data), dtype = bool) 
    8891 
Note: See TracChangeset for help on using the changeset viewer.