- Timestamp:
- Jan 12, 2011 12:38:35 PM (14 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:
- a01c743
- Parents:
- b7c7a1c
- Location:
- Invariant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/invariant.py
rcbaa2f4 r992199e 626 626 # Systematic error 627 627 # If we have smearing, the shape of the I(q) distribution at low Q will 628 # may not be a Guinier or simple power law. The following is a conservative629 # estimation for the systematic error.628 # may not be a Guinier or simple power law. The following is 629 # a conservative estimation for the systematic error. 630 630 err = qmin*qmin*math.fabs((qmin-self._low_q_limit)*\ 631 631 (data.y[0] - data.y[INTEGRATION_NSTEPS-1])) -
Invariant/invariant_mapper.py
r5797edc r992199e 4 4 """ 5 5 6 class InvariantMapper: 6 7 def get_qstar(inv, extrapolation=None): 7 8 """ 8 Wrapper for invariant module for map interface9 Get invariant value (Q*) 9 10 """ 10 def __init__(self): 11 """ 12 Initialize the wrapper 13 """ 14 def get_qstar(self, inv, extrapolation=None): 15 """ 16 Get invariant value (Q*) 17 """ 18 return inv.get_qstar(extrapolation) 19 20 def get_qstar_with_error(self, inv, extrapolation=None): 21 """ 22 Get invariant value with uncertainty 23 """ 24 return inv.get_qstar_with_error(extrapolation) 25 26 def get_volume_fraction(self, inv, contrast, extrapolation=None): 27 """ 28 Get volume fraction 29 """ 30 return inv.get_volume_fraction(contrast, extrapolation) 31 32 def get_volume_fraction_with_error(self, inv, contrast, extrapolation=None): 33 """ 34 Get volume fraction with uncertainty 35 """ 36 return inv.get_volume_fraction_with_error(contrast, 37 extrapolation) 38 39 def get_surface(self, inv, contrast, porod_const, extrapolation=None): 40 """ 41 Get surface with uncertainty 42 """ 43 return inv.get_surface(contrast=contrast, 44 porod_const=porod_const, 45 extrapolation=extrapolation) 46 47 def get_surface_with_error(self, inv, contrast, 48 porod_const, extrapolation=None): 49 """ 50 Get surface with uncertainty 51 """ 52 return inv.get_surface_with_error(contrast=contrast, 53 porod_const=porod_const, 54 extrapolation=extrapolation) 55 56 11 return inv.get_qstar(extrapolation) 12 13 def get_qstar_with_error(inv, extrapolation=None): 14 """ 15 Get invariant value with uncertainty 16 """ 17 return inv.get_qstar_with_error(extrapolation) 18 19 def get_volume_fraction(inv, contrast, extrapolation=None): 20 """ 21 Get volume fraction 22 """ 23 return inv.get_volume_fraction(contrast, extrapolation) 24 25 def get_volume_fraction_with_error(inv, contrast, extrapolation=None): 26 """ 27 Get volume fraction with uncertainty 28 """ 29 return inv.get_volume_fraction_with_error(contrast, 30 extrapolation) 31 32 def get_surface(inv, contrast, porod_const, extrapolation=None): 33 """ 34 Get surface with uncertainty 35 """ 36 return inv.get_surface(contrast=contrast, 37 porod_const=porod_const, 38 extrapolation=extrapolation) 39 40 def get_surface_with_error(inv, contrast, 41 porod_const, extrapolation=None): 42 """ 43 Get surface with uncertainty 44 """ 45 return inv.get_surface_with_error(contrast=contrast, 46 porod_const=porod_const, 47 extrapolation=extrapolation) 48
Note: See TracChangeset
for help on using the changeset viewer.