grapa.datatypes.curveArrhenius.CurveArrhenius
- class grapa.datatypes.curveArrhenius.CurveArrhenius(data, attributes, silent=False)
Bases:
CurveOffers some support for fitting Arrhenius plots. A bit weid implementation: different types of data are handled with subclasses, but no instance is ever fabricated of these subclasses. Reason is, we don’t knwo a priori which subclasse the instance will be, and we want to be able to easily switch from on type to the other. New types of plots can be implemented as subclasses without modifying the CurveArrhenius cain class. — — — Generally assumes x as temperature [K] and y as a some kind of signal [eV].
By default the output of the fit is E, Offset, with E the energy [eV] and Offset the value at 1/T = 0. The default fit function is Offset - E/(k*T), with k in [eV/K].
Alternative implementations are:
_Arrhenius_variant is set to ‘Cfdefects’ Assumes input as omega [s-1] vs temperature [K]. Useful to process C-f data. Relevant quantity to plot is log(omega * T**-2), and corresponding fit is log(2*ksi) - E /(kT).
- __init__(data, attributes, silent=False)
Methods
BUTTONFitLabel()BUTTONFitROI()CurveArrhenius_fit(Tlim, *args[, silent])Returns a Curve based on a fit on Arrhenius plot.
__init__(data, attributes[, silent])Determines the possible curve visualisations.
Provide base data, for the GUI to show what subclass of curve this is.
fit_Arrhenius([Tlim, addargs, silent])Fits the data on the Arrhenius plot, in ROI Tlim[0] to Tlim[1].
funcListGUI(**kwargs)Fills in the Curve actions specific to the Curve type. Retuns a list, which elements are instances of FuncGUI, or (old style): ::.
func_Arrhenius(T, E, prefactor)Returns function(K) which will appear linear on a Arrhenius plot.
getVariant()Prints help for the Curve subclass, generated from docstrings.
resampleX(method, xmin, xmax, cpl)Resample the X values and computes the Y values on it
setVariant(newVariant)x_1000overK([index])x-axis transform function
y_Arrhenius([index])y-axis transform function, getting the Arrhenius straight line
Attributes
CURVEk_eVoverK- CurveArrhenius_fit(Tlim, *args, silent=False)
Returns a Curve based on a fit on Arrhenius plot.
- alterListGUI()
Determines the possible curve visualisations. One element has the form: AlterListItem(‘Label GUI’, [‘alter_x’, ‘alter_y’], ‘semilogx’, “print help doc”) By default only neutral (i.e. raw data) is provided
- classmethod classNameGUI()
Provide base data, for the GUI to show what subclass of curve this is. Can be overridden, see CurveArrhenius.
- fit_Arrhenius(Tlim=None, addargs=None, silent=False)
Fits the data on the Arrhenius plot, in ROI Tlim[0] to Tlim[1]. Returns Energy barrier [eV] and prefactor.
- funcListGUI(**kwargs)
Fills in the Curve actions specific to the Curve type. Retuns a list, which elements are instances of FuncGUI, or (old style):
[func, 'Button text', ['label 1', 'label 2', ...], ['value 1', 'value 2', ...], {'hiddenvar1': 'value1', ...}, (optional) [dictFieldAttributes, {}, ...]] (optional)
By default, returns quick modifs for offset and muloffset (if already set), and a help for some plot types (errorbar, scatter).
- Parameters:
kwargs – this function should be called specifying kwargs[‘graph’] the graph self is embedded in, and kwargs[‘graph_i’] as position of self in graph.
- func_Arrhenius(T, E, prefactor)
Returns function(K) which will appear linear on a Arrhenius plot. E is energy barrier prefactor is value on plot at 1/T = 0
- print_help()
Prints help for the Curve subclass, generated from docstrings.
- resampleX(method, xmin, xmax, cpl)
Resample the X values and computes the Y values on it
- x_1000overK(index=None, **kwargs)
x-axis transform function
- y_Arrhenius(index=None, **kwargs)
y-axis transform function, getting the Arrhenius straight line