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

GUI window for fitting background and peaks to Mca objects.
 
Author:
   Mark Rivers
 
Created:
   Sept. 20, 2002
 
Modifications:
   Sept 25, 2002  MLR
      - Changed calls to fit.get_calibration() to fit.update()

 
Modules
            
Mca
Xrf
copy
math
myTkTop
sys
tkFileDialog
tkMessageBox
tkSimpleDialog
_tkinter
 
Classes
            
mcaPeakFit
 
class mcaPeakFit
      mcaPeakFit(mca, fit=None, command=None)
   mca:  Mca.Mca object to be fitted
   fit:  Mca.Fit object with fit parameters.  Optional.
   command:  callback command.  callback will be called as:
             command(background_mca=background_mca, fit_mca=fit_mca,
             cursor=cursor, fit=fit, get_cursor=1)
 
   Methods defined here:
__init__(self, mca, fit=None, command=None)
clear_peaks(self)
delete_peak(self)
fit_background(self)
fit_peaks(self)
insert_or_append(self, insert)
mark_peaks(self)
menu_exit(self)
new_index(self)
peak_label(self)
peak_params(self, value=None)
plot_background(self)
plot_fit(self)
read_globals(self)
read_peak_file(self)
set_results_file(self)
set_spreadsheet_file(self)
sort_function(self, p1, p2)
sort_peaks(self)
update_globals(self)
update_peak_line(self)
update_peaks(self)
write_peak_file(self)

Data and non-method functions defined here:
__doc__ = '\n mcaPeakFit(mca, fit=None, command=None)\n ... cursor=cursor, fit=fit, get_cursor=1)\n '
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__ = 'mcaPeakFit'
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__ = './mcaPeakFit.pyc'
__name__ = 'mcaPeakFit'