| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
pdfcomponent.PDFComponent --+
|
pdfdataset.PDFDataSet --+
|
FitDataSet
FitDataSet stores experimental and calculated PDF data and related
fitting parameters. Inherited from PDFDataSet.
Data members (in addition to those in PDFDataSet):
fitrmin -- lower boundary for data fitting, property
fitrmax -- upper boundary for data fitting, property
fitrstep -- r-step used for fitted data, property
constraints -- dictionary of { var_string : Constraint_instance }
initial -- dictionary of initial values of refinable variables
refined -- dictionary of refined values of refinable variables
Calculated members:
rcalc -- list of r points where Gcalc is calculated, cached property
Gcalc -- list of calculated G values, cached property
dGcalc -- list of standard deviations of Gcalc, cached property
Gtrunc -- Gobs resampled to rcalc grid, cached property
dGtrunc -- dGobs resampled to rcalc grid, cached property
Gdiff -- difference curve, Gdiff = Gtrunc - Gcalc, property
crw -- cumulative rw of the fit
The data in rcalc, Gcalc, dGcalc, Gtrunc, dGtrunc are recalculated
and cached when r-sampling changes. Any change to fitrmin,
fitrmax and fitrstep sets the _rcalc_changed flag.
Refinable variables: qdamp, qbroad, dscale
Note: self.refvar is the same as self.initial[refvar].
Class data:
persistentItems -- list of attributes saved in project file
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
persistentItems =
|
|||
|
Inherited from |
|||
|
|||
|
fitrmin Lower boundary for simulated PDF curve. |
|||
|
fitrmax Upper boundary for simulated PDF curve. |
|||
|
fitrstep R-step used for simulated PDF curve. |
|||
|
rcalc R-grid for refined data, read-only. |
|||
|
Gcalc List of calculate G values. |
|||
|
dGcalc List of standard deviations of Gcalc. |
|||
|
Gtrunc Gobs resampled to rcalc grid. |
|||
|
dGtrunc dGobs resampled to rcalc grid. |
|||
|
Gdiff Difference between observed and calculated PDF on rcalc grid. |
|||
|
crw cumulative rw on rcalc grid |
|||
|
Inherited from |
|||
|
|||
Initialize FitDataSet. name -- name of the data set. It must be a unique identifier.
|
Assign refinable variables to self.initial.
|
Obtain refinable variables from self.initial. This is called only when normal attribute lookup fails. |
make a string identifier return value: string id |
get names of data item which can be plotted as y returns list of strings |
get names of data item which can be plotted as x returns list of strings |
get self's data member
name -- data item name
step -- step info, it can be:
(1) a number ( -1 means latest step ): for single step
(2) a list of numbers: for multiple steps
(3) None: for all steps
returns data object, be it a single number, a list, or a list of list
|
Reset all data members to initial empty values.
|
Upload refined datataset from PdfFit server instance. server -- instance of PdfFit server idataset -- index of this dataset in server |
Same as readObs().
|
Helper method for updating fitrmin, fitrmax and fitrstep just after reading observed values. No return value. |
Load experimental PDF data from PDFGetX2 or PDFGetN gr file. filename -- file to read from returns self |
Same as readObsStr().
|
Read experimental PDF data from a string datastring -- string of raw data returns self |
Same as writeCalc(). Use writeObs() to save experimental PDF data. filename -- name of file to write to No return value.
|
Write calculated PDF data to a file. filename -- name of file to write to No return value. |
Same as writeCalcStr. Use writeObsStr() for experimental PDF. Return data string.
|
String representation of calculated PDF data. Return data string. |
Write observed PDF data to a file. filename -- name of file to write to No return value. |
String representation of observed PDF data. Return data string. |
Return instance of PDFDataSet with resampled observed data. Helper method for writeResampledObs and writeResampledObsStr. |
Write resampled PDF data in Gtrunc to a file. filename -- name of the file to write to No return value. |
String representation of resampled PDF data in Gtrunc. Return data string. |
Obtain dictionary of parameters used by self.constraints. The keys of returned dictionary are integer parameter indices, and their values Parameter instances, with guessed initial values. returns dictionary of indices and Parameter instances |
Evaluate constraint formulas and adjust self.initial
parameters -- dictionary of parameter indices with Parameter instances.
Dictionary may also have float-type values.
|
Change a parameter index to a new value. This will replace all instances of one parameter name with another in this fit. |
Copy self to other. if other is None, create new instance other -- ref to other object returns reference to copied object
|
Load data from a zipped project file. z -- zipped project file subpath -- path to its own storage within project file |
Save data to a zipped project file. z -- zipped project file subpath -- path to its own storage within project file |
Description of r-sampling used in the fit. This method compares self.fitrstep with r-sampling in the observed data and with Nyquist r step. Return a string, possible values are "data", "Nyquist" or "custom". |
GUI interface to set fitrstep, i.e., r-grid for fitting.
tp -- description of fit sampling type. Possible values are
"data" ... same as used in experimental PDF
"Nyquist" ... sampling at Nyquist spacing
"custom" ... user specified value
value -- new value of fitrstep, only used when tp is "custom".
No return value.
Raises ValueError for unknown tp string.
|
Return r-step corresponding to Nyquist sampling at the qmax value. When qmax is zero, return r-step in the observed data. |
Helper method for resampling rcalc and interpolating related data. This method interpolates Gcalc, dGcalc, Gtrunc, dGtrunc, crw to new r grid. No return value. |
|
|||
persistentItems
|
|
|||
fitrminLower boundary for simulated PDF curve.
|
fitrmaxUpper boundary for simulated PDF curve.
|
fitrstepR-step used for simulated PDF curve.
|
rcalcR-grid for refined data, read-only. Use fitrmin, fitrmax, fitrstep to change it
|
GcalcList of calculate G values.
|
dGcalcList of standard deviations of Gcalc.
|
GtruncGobs resampled to rcalc grid.
|
dGtruncdGobs resampled to rcalc grid.
|
GdiffDifference between observed and calculated PDF on rcalc grid.
|
crwcumulative rw on rcalc grid
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Apr 10 19:11:00 2009 | http://epydoc.sourceforge.net |