Deviation(filename, hardcopy=False, returnarrays=False, testpoints=False, outfile='deviation.eps')

Analyze the output file filename* (or list of files) produced by the MagiC core and plot deviation between the set of reference distribution functions and sampled distribution function obtained on every iteration of the inverse procedure. Two deviations are calculated:
$ \Delta S\sim [\sum_{r_j=0}^{r_j=r_{max}}{(S_{iter}(r_j)-S_{ref}(r_j))^2}]^{0.5}$ and
$ \Delta RDF\sim [\sum_{r_j=0}^{r_j=r_{max}}{(g_{iter}(r_j)-g_{ref}(r_j))^2}]^{0.5}$
If an intermediate convergence test has been performed during inverse procedure, results of the test are also plotted.
filename*
- name of the magic output file or list of such names (mandatory argument).
hardcopy
- if the plot should be saved to a .eps file (optional argument). Default - no.
outfile
- file to save the plot, if hardcopy=True
testpoints
- if the points sampled in intermediate convergence tests shall be also plotted. Default - no.
returnarrays
- if true, the procedure returns numpy arrays with iteration number and deviation values.

Examples:
MT.Deviation('01.magic.out', testpoints=True)
MT.Deviation(['01.magic.out','02.magic.out'],hardcopy=True)