Changeset 7743c09 in sasview
- Timestamp:
- Sep 15, 2016 8:33:57 AM (8 years ago)
- Branches:
- 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
- Children:
- a9d3abb
- Parents:
- b76cf0d
- git-author:
- Lewis O'Driscoll <lewis.o'driscoll@…> (08/18/16 10:52:06)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
rb76cf0d r7743c09 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': … … 303 303 ## Type cast data arrays to float64 and find min/max as appropriate 304 304 for dataset in self.data2d: 305 dataset.data = np.delete(dataset.data, [0])306 305 dataset.data = dataset.data.astype(np.float64) 307 dataset.err_data = np.delete(dataset.err_data, [0])308 306 dataset.err_data = dataset.err_data.astype(np.float64) 309 dataset.mask = np.delete(dataset.mask, [0])310 307 if dataset.qx_data is not None: 311 dataset.qx_data = np.delete(dataset.qx_data, [0])312 308 dataset.xmin = np.min(dataset.qx_data) 313 309 dataset.xmax = np.max(dataset.qx_data) 314 310 dataset.qx_data = dataset.qx_data.astype(np.float64) 315 311 if dataset.dqx_data is not None: 316 dataset.dqx_data = np.delete(dataset.dqx_data, [0])317 312 dataset.dqx_data = dataset.dqx_data.astype(np.float64) 318 313 if dataset.qy_data is not None: 319 dataset.qy_data = np.delete(dataset.qy_data, [0])320 314 dataset.ymin = np.min(dataset.qy_data) 321 315 dataset.ymax = np.max(dataset.qy_data) 322 316 dataset.qy_data = dataset.qy_data.astype(np.float64) 323 317 if dataset.dqy_data is not None: 324 dataset.dqy_data = np.delete(dataset.dqy_data, [0])325 318 dataset.dqy_data = dataset.dqy_data.astype(np.float64) 326 319 if dataset.q_data is not None: 327 dataset.q_data = np.delete(dataset.q_data, [0])328 320 dataset.q_data = dataset.q_data.astype(np.float64) 329 321 zeros = np.ones(dataset.data.size, dtype=bool) … … 345 337 for dataset in self.data1d: 346 338 if dataset.x is not None: 347 dataset.x = np.delete(dataset.x, [0])348 339 dataset.x = dataset.x.astype(np.float64) 349 340 dataset.xmin = np.min(dataset.x) 350 341 dataset.xmax = np.max(dataset.x) 351 342 if dataset.y is not None: 352 dataset.y = np.delete(dataset.y, [0])353 343 dataset.y = dataset.y.astype(np.float64) 354 344 dataset.ymin = np.min(dataset.y) 355 345 dataset.ymax = np.max(dataset.y) 356 346 if dataset.dx is not None: 357 dataset.dx = np.delete(dataset.dx, [0])358 347 dataset.dx = dataset.dx.astype(np.float64) 359 348 if dataset.dxl is not None: 360 dataset.dxl = np.delete(dataset.dxl, [0])361 349 dataset.dxl = dataset.dxl.astype(np.float64) 362 350 if dataset.dxw is not None: 363 dataset.dxw = np.delete(dataset.dxw, [0])364 351 dataset.dxw = dataset.dxw.astype(np.float64) 365 352 if dataset.dy is not None: 366 dataset.dy = np.delete(dataset.dy, [0])367 353 dataset.dy = dataset.dy.astype(np.float64) 368 354 final_dataset = combine_data_info_with_plottable(dataset, self.current_datainfo)
Note: See TracChangeset
for help on using the changeset viewer.