grapa.datatypes.curveSIMS.CurveSIMS

class grapa.datatypes.curveSIMS.CurveSIMS(*args, **opts)

Bases: Curve

CurveSIMS offer some basic processing of SIMS data. One can notably compute ratios of curves, for which relative yields have to be provided or can be calculated using known integral ratios.

Curves ratios are noted with keywords such as “ggi” (notation shortcuts), or explicitly as “[[‘^71Ga+’], [‘^71Ga+’, ‘^113In+’]]”, to be interpreted as ratio of sums of curve values mutliplied by their individual yields. An empty top or bottom list is replaced by 1.”

__init__(*args, **opts)

Methods

__init__(*args, **opts)

alterListGUI()

Determines the possible curve visualisations.

cropDataROI(ROI)

Delete datapoints with x value outside specified range.

findLayerBorders([ROI, targetRel, ...])

funcListGUI(**kwargs)

Fills in the Curve actions specific to the Curve type. Retuns a list, which elements are instances of FuncGUI, or (old style): ::.

localizeEdge(ROI, targetRel[, threshRel, ...])

localizeEdgeFromGUI(ROI, targetRel, ...)

Auto-detect edges in the selected curve.

print_help()

Prints help for the Curve subclass, generated from docstrings.

setDepthParameters(offset, mult)

Attributes

ALTER_SIMS_TIME_DEPTH

AXISLABELS_X

CURVE

FORMAT_AUTOLABEL

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

cropDataROI(ROI)

Delete datapoints with x value outside specified range.

Parameters:

ROI – Range of interest, in units of x data. [x_min, x_max].

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.

localizeEdgeFromGUI(ROI, targetRel, threshRel, ifTrailingEdge)

Auto-detect edges in the selected curve.

Parameters:
  • ROI – range of interest, in units of input x data. [x_min, x_max]

  • targetRel – value relative to max within ROI the edge is defined. Default 0.5

  • threshRel – threshold for data to consider relative to maximum, default [0.3, 0.7].

  • ifTrailingEdge – 0 if leading edge, 1 if trailing edge.

print_help()

Prints help for the Curve subclass, generated from docstrings.