ImageD11.transformer
index
c:\python25\lib\site-packages\imaged11\transformer.py

# ImageD11_v0.4 Software for beamline ID11
# Copyright (C) 2005  Jon Wright
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

 
Modules
       
ImageD11.columnfile
logging
math
numpy.oldnumeric
ImageD11.transform
ImageD11.unitcell

 
Classes
       
transformer

 
class transformer
    Handles the algorithmic, fitting and state information for 
fitting parameters to give experimental calibrations
 
  Methods defined here:
__init__(self)
Nothing passed in ?
It should really be inheriting from the parameter object.
addcellpeaks(self, limit=None)
Adds unit cell predicted peaks for fitting against
Optional arg limit gives highest angle to use
 
Depends on parameters:
    'cell__a','cell__b','cell__c', 'wavelength' # in angstrom
    'cell_alpha','cell_beta','cell_gamma' # in degrees
    'cell_lattice_[P,A,B,C,I,F,R]'
applyargs(self, args)
for use with simplex/gof function, alter parameters
compute_tth_eta(self)
Compute the twotheta and eta for peaks previous read in
compute_tth_histo(self)
Compute the histogram over twotheta for peaks previous read in
and filter peaks out falling in bins with less than min_bin_ratio
computegv(self)
Using self.twotheta, self.eta and omega angles, compute x,y,z of spot
in reciprocal space
fit(self, tthmax=180)
Apply simplex to improve fit of obs/calc tth
get_variable_list(self)
getvars(self)
decide what is refinable
gof(self, args)
Compute how good is the fit of obs/calc peak positions in tth
loadfileparameters(self, filename)
Read in beam center etc from file
loadfiltered(self, filename)
Read in 3D peaks from peaksearch
savegv(self, filename)
Save g-vectors into a file
Use crappy .ass format from previous for now (testing)
saveparameters(self, filename)
Save beam center etc to file
setvars(self, varlist)
set the things to refine
updateparameters(self)
write_graindex_gv(self, filename)

 
Data
        PARAMETERS = [<ImageD11.parameters.par instance at 0x00EB2D00>, <ImageD11.parameters.par instance at 0x00EB2D28>, <ImageD11.parameters.par instance at 0x00EB2D78>, <ImageD11.parameters.par instance at 0x00EB2DA0>, <ImageD11.parameters.par instance at 0x00EB2DC8>, <ImageD11.parameters.par instance at 0x00EB2DF0>, <ImageD11.parameters.par instance at 0x00EB2E18>, <ImageD11.parameters.par instance at 0x00EB2E40>, <ImageD11.parameters.par instance at 0x00EB2E68>, <ImageD11.parameters.par instance at 0x00EB2E90>, <ImageD11.parameters.par instance at 0x00EB2EB8>, <ImageD11.parameters.par instance at 0x00EB2EE0>, <ImageD11.parameters.par instance at 0x00EB2F08>, <ImageD11.parameters.par instance at 0x00EB2F30>, <ImageD11.parameters.par instance at 0x00EB2F58>, <ImageD11.parameters.par instance at 0x00EB2F80>, <ImageD11.parameters.par instance at 0x00EB2FA8>, <ImageD11.parameters.par instance at 0x00EB2FD0>, <ImageD11.parameters.par instance at 0x00EB7030>, <ImageD11.parameters.par instance at 0x00EB7058>, ...]