# Actions

Commands to define scripts to be executed during the acquisition flow

- positions [n [p0..pn-1]] sets/gets number of angular position and positions to be acquired.. `Returns` ``(int int..) n [p0..pn-1]

- startscript [s] sets/gets the script to be executed at the beginning of the acquisition. `none` unsets. `Returns` ``(string)

- startscriptpar [s] sets/gets a string to be passed as a parameter to the startscript. `Returns` ``(string)

- stopscript [s] sets/gets the script to be executed at the end of the acquisition. `none` unsets. `Returns` ``(string)

- stopscriptpar [s] sets/gets a string to be passed as a parameter to the stopscript. `Returns` ``(string)

- scriptbefore [s] sets/gets the script to be executed before starting the detector every time in the acquisition. `none` unsets. `Returns` ``(string)

- scriptbeforepar [s] sets/gets a string to be passed as a parameter to the scriptbefore. `Returns` ``(string)

- scriptafter [s] sets/gets the script to be executed after the detector has finished every time in the acquisition. `none` unsets. `Returns` ``(string)

- scriptafterpar [s] sets/gets a string to be passed as a parameter to the scriptafter. `Returns` ``(string)

- headerafter [s] sets/gets the script to be executed for logging the detector parameters. `none` unsets. `Returns` ``(string)

- headerbefore [s] sets/gets the script to be executed for logging the detector parameters. `none` unsets. `Returns` ``(string)

- headerbeforepar [s] sets/gets a string to be passed as a parameter to the headerbefore script. `Returns` ``(string)

- headerafterpar [s] sets/gets a string to be passed as a parameter to the headerafter script. `Returns` ``(string)

- enacallog [i] enables/disables logging of the parameters necessary for the energy calibration. 1 sets, 0 unsets. `Returns` ``(int)

- angcallog [i] enables/disables logging of the parameters necessary for the angular calibration. 1 sets, 0 unsets. `Returns` ``(int)

- scan0script [s] sets/gets the script to be executed for the scan 0 level. `none` unsets.

- scan0par [s] sets/gets a string to be passed as a parameter to the scan0script

- scan0prec [i] sets/gets number of digits to be used for the scan0 variable in the file name.

- scan0steps [i [s0..sn-1]] sets/gets number of steps (int) of the scan0 level and their values (float).

- scan0range [smin smax sstep] sets scan0 min, max and step, returns the number of steps and their values as scan0steps.

- scan1script [s] sets/gets the script to be executed for the scan1 level. `none` unsets.

- scan1par [s] sets/gets a string to be passed as a parameter to the scan1script

- scan1prec [i] sets/gets number of digits to be used for the scan1 variable in the file name.

- scan1steps [i [s0..sn-1]] sets/gets number of steps (int) of the scan1 level and their values (float).

- scan1range [smin smax sstep] sets scan1 min, max and step, returns the number of steps and their values as scan1steps.