Changeset 3d6ab79 in sasview
- Timestamp:
- Aug 18, 2016 10:52:06 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7f71637
- Parents:
- e9e777c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
r7bd6860a r3d6ab79 136 136 data_set = data[key][:] 137 137 unit = self._get_unit(value) 138 138 139 139 ## I and Q Data 140 140 if key == u'I': … … 307 307 ## Type cast data arrays to float64 and find min/max as appropriate 308 308 for dataset in self.data2d: 309 dataset.data = np.delete(dataset.data, [0])310 309 dataset.data = dataset.data.astype(np.float64) 311 dataset.err_data = np.delete(dataset.err_data, [0])312 310 dataset.err_data = dataset.err_data.astype(np.float64) 313 dataset.mask = np.delete(dataset.mask, [0])314 311 if dataset.qx_data is not None: 315 dataset.qx_data = np.delete(dataset.qx_data, [0])316 312 dataset.xmin = np.min(dataset.qx_data) 317 313 dataset.xmax = np.max(dataset.qx_data) 318 314 dataset.qx_data = dataset.qx_data.astype(np.float64) 319 315 if dataset.dqx_data is not None: 320 dataset.dqx_data = np.delete(dataset.dqx_data, [0])321 316 dataset.dqx_data = dataset.dqx_data.astype(np.float64) 322 317 if dataset.qy_data is not None: 323 dataset.qy_data = np.delete(dataset.qy_data, [0])324 318 dataset.ymin = np.min(dataset.qy_data) 325 319 dataset.ymax = np.max(dataset.qy_data) 326 320 dataset.qy_data = dataset.qy_data.astype(np.float64) 327 321 if dataset.dqy_data is not None: 328 dataset.dqy_data = np.delete(dataset.dqy_data, [0])329 322 dataset.dqy_data = dataset.dqy_data.astype(np.float64) 330 323 if dataset.q_data is not None: 331 dataset.q_data = np.delete(dataset.q_data, [0])332 324 dataset.q_data = dataset.q_data.astype(np.float64) 333 325 zeros = np.ones(dataset.data.size, dtype=bool) … … 349 341 for dataset in self.data1d: 350 342 if dataset.x is not None: 351 dataset.x = np.delete(dataset.x, [0])352 343 dataset.x = dataset.x.astype(np.float64) 353 344 dataset.xmin = np.min(dataset.x) 354 345 dataset.xmax = np.max(dataset.x) 355 346 if dataset.y is not None: 356 dataset.y = np.delete(dataset.y, [0])357 347 dataset.y = dataset.y.astype(np.float64) 358 348 dataset.ymin = np.min(dataset.y) 359 349 dataset.ymax = np.max(dataset.y) 360 350 if dataset.dx is not None: 361 dataset.dx = np.delete(dataset.dx, [0])362 351 dataset.dx = dataset.dx.astype(np.float64) 363 352 if dataset.dxl is not None: 364 dataset.dxl = np.delete(dataset.dxl, [0])365 353 dataset.dxl = dataset.dxl.astype(np.float64) 366 354 if dataset.dxw is not None: 367 dataset.dxw = np.delete(dataset.dxw, [0])368 355 dataset.dxw = dataset.dxw.astype(np.float64) 369 356 if dataset.dy is not None: 370 dataset.dy = np.delete(dataset.dy, [0])371 357 dataset.dy = dataset.dy.astype(np.float64) 372 358 final_dataset = combine_data_info_with_plottable(dataset, self.current_datainfo)
Note: See TracChangeset
for help on using the changeset viewer.