Changeset 8a621ac in sasview for sanscalculator/src/sans/calculator/kiessig_calculator.py
- Timestamp:
- Apr 27, 2012 9:22:40 AM (12 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 10bfeb3
- Parents:
- 34f3ad0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sanscalculator/src/sans/calculator/kiessig_calculator.py
rf93b6a1e r8a621ac 1 1 """ 2 2 This module is a small tool to allow user to quickly 3 determine the size value in real space from the 3 determine the size value in real space from the 4 4 fringe width in q space. 5 5 """ 6 6 from math import pi, fabs 7 7 _DQ_DEFAULT = 0.05 8 9 8 10 class KiessigThicknessCalculator(object): 9 11 """ … … 13 15 14 16 # dq value 15 self.deltaq = _DQ_DEFAULT 17 self.deltaq = _DQ_DEFAULT 16 18 # thickenss value 17 19 self.thickness = None … … 26 28 """ 27 29 # set dq 28 self.deltaq 30 self.deltaq = dq 29 31 30 32 def get_deltaq(self): … … 33 35 """ 34 36 # return dq 35 return self.deltaq 37 return self.deltaq 36 38 37 39 def compute_thickness(self): … … 51 53 else: 52 54 # calculate thickness 53 thickness = 2*pi/fabs(dq) 54 # return thickness value 55 thickness = 2*pi/fabs(dq) 56 # return thickness value 55 57 return thickness 56 58 57 def get_thickness_unit(self): 59 def get_thickness_unit(self): 58 60 """ 59 61 :return: the thickness unit. … … 61 63 # unit of thickness 62 64 return self.thickness_unit 63 64
Note: See TracChangeset
for help on using the changeset viewer.