Changeset b8080e1 in sasview for src/sas/sascalc/calculator/resolution_calculator.py
- Timestamp:
- Aug 29, 2018 8:01:23 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 9463ca2
- Parents:
- ce30949
- git-author:
- Piotr Rozyczko <rozyczko@…> (08/29/18 07:59:56)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (08/29/18 08:01:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/calculator/resolution_calculator.py
r8f83719f rb8080e1 1007 1007 try: 1008 1008 detector_offset = self.sample2detector_distance[1] 1009 except Exception as ex:1010 logger.error( ex)1009 except: 1010 logger.error(sys.exc_value) 1011 1011 1012 1012 # detector size in [no of pix_x,no of pix_y] … … 1057 1057 # qx_value and qy_value values in array 1058 1058 qx_value = qx_value.repeat(detector_pix_nums_y) 1059 qx_value = qx_value.reshape( int(detector_pix_nums_x), int(detector_pix_nums_y))1059 qx_value = qx_value.reshape(detector_pix_nums_x, detector_pix_nums_y) 1060 1060 qy_value = qy_value.repeat(detector_pix_nums_x) 1061 qy_value = qy_value.reshape( int(detector_pix_nums_y), int(detector_pix_nums_x))1061 qy_value = qy_value.reshape(detector_pix_nums_y, detector_pix_nums_x) 1062 1062 qy_value = qy_value.transpose() 1063 1063 … … 1094 1094 output.qx_data = qx_value 1095 1095 output.qy_data = qy_value 1096 except Exception as ex:1097 logger.error( ex)1096 except: 1097 logger.error(sys.exc_value) 1098 1098 1099 1099 return output
Note: See TracChangeset
for help on using the changeset viewer.