Changeset 369ed11d in sasview
- Timestamp:
- Jul 9, 2018 2:02:50 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/file_converter/nxcansas_writer.py
rf5483ef r369ed11d 264 264 i_dev_entry.attrs['units'] = data_obj.y_unit 265 265 if data_obj.dx is not None: 266 q_entry.attrs[' uncertainties'] = 'dQ'266 q_entry.attrs['resolutions'] = 'dQ' 267 267 dq_entry = data_entry.create_dataset('dQ', data=data_obj.dx) 268 268 dq_entry.attrs['units'] = data_obj.x_unit 269 269 elif data_obj.dxl is not None: 270 q_entry.attrs[' uncertainties'] = 'dQl,dQw'270 q_entry.attrs['resolutions'] = ['dQl','dQw'] 271 271 dql_entry = data_entry.create_dataset('dQl', data=data_obj.dxl) 272 272 dql_entry.attrs['units'] = data_obj.x_unit … … 314 314 i_dev_entry.attrs['units'] = data.I_unit 315 315 if not all(data.dqx_data == [None]): 316 qx_entry.attrs[' uncertainties'] = 'dQx'316 qx_entry.attrs['resolutions'] = 'dQx' 317 317 dqx_entry = data_entry.create_dataset('dQx', data=data.dqx_data) 318 318 dqx_entry.attrs['units'] = data.Q_unit 319 319 if not all(data.dqy_data == [None]): 320 qy_entry.attrs[' uncertainties'] = 'dQx'321 dqy_entry = data_entry.create_dataset('dQ x', data=data.dqy_data)320 qy_entry.attrs['resolutions'] = 'dQy' 321 dqy_entry = data_entry.create_dataset('dQy', data=data.dqy_data) 322 322 dqy_entry.attrs['units'] = data.Q_unit
Note: See TracChangeset
for help on using the changeset viewer.