Changeset 3129 for trunk/GSASIIscriptable.py
- Timestamp:
- Oct 8, 2017 9:53:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIscriptable.py
r3123 r3129 63 63 Histogram/Phase objects 64 64 ------------------------ 65 Each histogram and phase has an object.66 Parameters within each individual object can be turned on and off by calling65 Each phase and powder histogram in a :class:`G2Project` object has an associated 66 object. Parameters within each individual object can be turned on and off by calling 67 67 :meth:`G2PwdrData.set_refinements` or :meth:`G2PwdrData.clear_refinements` 68 68 for histogram parameters; … … 75 75 params = { 'Limits': [0.8, 12.0], 76 76 'Sample Parameters': ['Absorption', 'Contrast', 'DisplaceX'], 77 'Background': {'type': 'chebyschev', 'refine': True} 77 'Background': {'type': 'chebyschev', 'refine': True}} 78 78 some_histogram.set_refinements(params) 79 79 … … 1741 1741 pass 1742 1742 1743 def get_wR(self): 1744 """returns the overall weighted profile R factor for a histogram 1745 1746 :returns: a wR value as a percentage or None if not defined 1747 """ 1748 return self['data'][0].get('wR') 1749 1743 1750 def set_refinements(self, refs): 1744 1751 """Sets the refinement parameter 'key' to the specification 'value' … … 2211 2218 h['Show'] = bool(val) 2212 2219 elif key == 'Size': 2213 # TODO 2214 raise NotImplementedError() 2220 for h in histograms: 2221 if h['Size'][0] == 'isotropic': 2222 h['Size'][2][0] = bool(val) 2223 elif h['Size'][0] == 'uniaxial': 2224 h['Size'][2][1] = bool(val) 2225 h['Size'][2][2] = bool(val) 2226 else: # TODO 2227 raise NotImplementedError() 2215 2228 elif key == 'Use': 2216 2229 for h in histograms:
Note: See TracChangeset
for help on using the changeset viewer.