ARTEMIS: Editing Math Expressions

ARTEMIS - Editing math expressions

The math expression editing dialog is a way of setting path parameter math expressions for many paths at once. It works on a given path parameter, e.g. it sets e0 or sigma^2 for many paths but does not touch other path parameters. This dialog is available in two different context menus. If you right click on a path parameter label on the path page and selection ``Edit for many paths'', then the dialog will pop up for editing that parameter. If you right click on an entry on the Feff interpretation page and select the ``Edit path parameters'' cascade, then select a path parameter, the dialog will pop up for editing that parameter.

Operation of the dialog

The dialog is fairly simple. At the top is a text entry box for typing in your math expression. Below that are various radiobuttons for specifying how to apply the math expression to the various paths in your project. The options are:

  1. Add the math expression to every path in the current Feff calculation.

  2. Add the math expression to every path in the each Feff calculation.

  3. Add the math expression to every path in the each Feff calculation associated with the current data set.

  4. Add the math expression to selected paths (i.e. the ones highlighted in orange in the Data and Paths list).

Tokens

You can write your math expressions using token. Tokens are short character strings which will be replaced by path-specific information as the math expression is applied to each path. The tokens are:

%i
The path index from the Feff calculation. This is actually computed from the name of the `feffNNNN.dat' file from the Feff calculation. For instance, if the file is `feff0029.dat', then %i will expand to 29.

%I
The path index from the Feff calculation, padded to fill four characters. For instance, if the file is `feff0029.dat', then %I will expand to 0029.

%r
The effective path length (or reff) from the Feff calculation for the path.

%d
The degeneracy of the path.

%D
A template for the Debye function. This always expands to the string ``debye(temp,thetad)'' and may need be edited after the fact to use the correct variable names. This is offered because the author finds it hard to remember the order of the arguments to the Debye function.

%E
A template for the Einstein function. This always expands to the string ``eins(temp,thetae)'' and may need be edited after the fact to use the correct variable names. This is offered because the author finds it hard to remember the order of the arguments to the Einstein function.

Back to the main document