Changeset 369ed11d in sasview


Ignore:
Timestamp:
Jul 9, 2018 2:02:50 PM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
b011ecb
Parents:
02c1608e
Message:

Save dQ values as resolutions, not uncertainties. refs #1129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/file_converter/nxcansas_writer.py

    rf5483ef r369ed11d  
    264264            i_dev_entry.attrs['units'] = data_obj.y_unit 
    265265        if data_obj.dx is not None: 
    266             q_entry.attrs['uncertainties'] = 'dQ' 
     266            q_entry.attrs['resolutions'] = 'dQ' 
    267267            dq_entry = data_entry.create_dataset('dQ', data=data_obj.dx) 
    268268            dq_entry.attrs['units'] = data_obj.x_unit 
    269269        elif data_obj.dxl is not None: 
    270             q_entry.attrs['uncertainties'] = 'dQl,dQw' 
     270            q_entry.attrs['resolutions'] = ['dQl','dQw'] 
    271271            dql_entry = data_entry.create_dataset('dQl', data=data_obj.dxl) 
    272272            dql_entry.attrs['units'] = data_obj.x_unit 
     
    314314            i_dev_entry.attrs['units'] = data.I_unit 
    315315        if not all(data.dqx_data == [None]): 
    316             qx_entry.attrs['uncertainties'] = 'dQx' 
     316            qx_entry.attrs['resolutions'] = 'dQx' 
    317317            dqx_entry = data_entry.create_dataset('dQx', data=data.dqx_data) 
    318318            dqx_entry.attrs['units'] = data.Q_unit 
    319319        if not all(data.dqy_data == [None]): 
    320             qy_entry.attrs['uncertainties'] = 'dQx' 
    321             dqy_entry = data_entry.create_dataset('dQx', data=data.dqy_data) 
     320            qy_entry.attrs['resolutions'] = 'dQy' 
     321            dqy_entry = data_entry.create_dataset('dQy', data=data.dqy_data) 
    322322            dqy_entry.attrs['units'] = data.Q_unit 
Note: See TracChangeset for help on using the changeset viewer.