mcaCalibrate2theta
index
/usr/local/python/epics/mcaCalibrate2theta.py

selfCreates a GUI window to calibrate 2-theta for an Mca.
 
Author:         Mark Rivers
Created:        Sept. 18, 2002
Modifications:  MLR, Sept. 20, 2002.  Numerous bug fixes.

 
Modules
            
BltPlot
CARSMath
MLab
Mca
Numeric
copy
jcpds
math
sys
tkMessageBox
_tkinter
 
Classes
            
mcaCalibrate2theta
mcaCalibrate2theta_widgets
 
class mcaCalibrate2theta
       
   Methods defined here:
__init__(self, mca, command=None)
Creates a new GUI window for calibrating 2-theta for an Mca object.
 
Inputs:
   mca:
      An Mca instance to be calibrated.  The Mca must have at least 1
      Regions of Interest (ROI) defined.
 
Keywords:
   command:
      A callback command that will be executed if the OK button on
      the GUI window is pressed.  The callback will be invoked as:
         command(exit_status)
      where exit_status is 1 if OK was pressed, and 0 if Cancel was
      pressed or the window was closed with the window manager.
 
Procedure:
   The calibration is done by determining the centroid position and
   d-spacing of each ROI.
 
   The centroids positions are computed by fitting the
   ROI counts to a Gaussian, using CARSMath.fit_gaussian.
 
   The d-spacing the ROI can be entered manually in the GUI window, or it
   can be determined automatically if the label of the ROI can be
   successfully used in jcpds.lookup_jcpds_line().
 
   Each ROI can be selectively used or omitted when doing the calibration.
 
   The errors in the 2-theta calibration, can be plotted using BltPlot.
menu_d_spacing(self, roi)
 Private method
menu_do_fit(self)
 Private method
menu_energy(self, roi)
 Private method
menu_label(self, roi)
 Private method
menu_ok_cancel(self, button)
 Private method
menu_plot_calibration(self)
 Private method
menu_two_theta(self)
 Private method
menu_use(self, value, roi)
 Private method

Data and non-method functions defined here:
__doc__ = None
__module__ = 'mcaCalibrate2theta'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
class mcaCalibrate2theta_widgets
       Private class
 
   Methods defined here:
__init__(self, nrois)

Data and non-method functions defined here:
__doc__ = ' Private class'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'mcaCalibrate2theta'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
Data
             ACTIVE = 'active'
ALL = 'all'
ANCHOR = 'anchor'
ARC = 'arc'
BASELINE = 'baseline'
BEVEL = 'bevel'
BOTH = 'both'
BOTTOM = 'bottom'
BROWSE = 'browse'
BUTT = 'butt'
CASCADE = 'cascade'
CENTER = 'center'
CHAR = 'char'
CHECKBUTTON = 'checkbutton'
CHORD = 'chord'
COMMAND = 'command'
CURRENT = 'current'
DISABLED = 'disabled'
E = 'e'
END = 'end'
EW = 'ew'
EXCEPTION = 8
EXTENDED = 'extended'
FALSE = 0
FIRST = 'first'
FLAT = 'flat'
GROOVE = 'groove'
HORIZONTAL = 'horizontal'
INSERT = 'insert'
INSIDE = 'inside'
LAST = 'last'
LEFT = 'left'
MITER = 'miter'
MOVETO = 'moveto'
MULTIPLE = 'multiple'
N = 'n'
NE = 'ne'
NO = 0
NONE = 'none'
NORMAL = 'normal'
NS = 'ns'
NSEW = 'nsew'
NUMERIC = 'numeric'
NW = 'nw'
OFF = 0
ON = 1
OUTSIDE = 'outside'
PAGES = 'pages'
PIESLICE = 'pieslice'
PROJECTING = 'projecting'
Pmw = <Pmw.Pmw_0_8_5.lib.PmwLoader.PmwLoader instance>
RADIOBUTTON = 'radiobutton'
RAISED = 'raised'
READABLE = 2
RIDGE = 'ridge'
RIGHT = 'right'
ROUND = 'round'
S = 's'
SCROLL = 'scroll'
SE = 'se'
SEL = 'sel'
SEL_FIRST = 'sel.first'
SEL_LAST = 'sel.last'
SEPARATOR = 'separator'
SINGLE = 'single'
SOLID = 'solid'
SUNKEN = 'sunken'
SW = 'sw'
StringTypes = (<type 'str'>, <type 'unicode'>)
TOP = 'top'
TRUE = 1
TclError = 'TclError'
TclVersion = 8.3000000000000007
TkVersion = 8.3000000000000007
UNITS = 'units'
VERTICAL = 'vertical'
W = 'w'
WORD = 'word'
WRITABLE = 4
X = 'x'
Y = 'y'
YES = 1
__file__ = './mcaCalibrate2theta.pyc'
__name__ = 'mcaCalibrate2theta'