Changeset e090ba90 in sasview for src/sas/sascalc/calculator
- Timestamp:
- Oct 11, 2018 11:59:57 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1249
- Children:
- 88d2e70
- Parents:
- 67ed543
- Location:
- src/sas/sascalc/calculator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/calculator/instrument.py
rf4775563 re090ba90 128 128 self.size = 0 129 129 else: 130 self.size = size 130 # TODO: Make sure detector size is number of pixels 131 # Could be detector dimensions in e.g., mm, but 132 # the resolution calculator assumes it is pixels. 133 # Being pixels, it has to be integers rather than float 134 self.size = [int(s) for s in size] 131 135 validate(size[0]) 132 136 -
src/sas/sascalc/calculator/resolution_calculator.py
r574adc7 re090ba90 1007 1007 try: 1008 1008 detector_offset = self.sample2detector_distance[1] 1009 except :1010 logger.error( sys.exc_value)1009 except Exception as exc: 1010 logger.error(exc) 1011 1011 1012 1012 # detector size in [no of pix_x,no of pix_y] … … 1094 1094 output.qx_data = qx_value 1095 1095 output.qy_data = qy_value 1096 except :1097 logger.error( sys.exc_value)1096 except Exception as exc: 1097 logger.error(exc) 1098 1098 1099 1099 return output
Note: See TracChangeset
for help on using the changeset viewer.