| Release: | 0.4.4 |
|---|---|
| Date: | April 12, 2011 |
| Author: | Konstantin Klementiev |
| License: | Open Source, MIT License |
Package pyXRayTracer is a python frontend for x-ray tracing. It defines classes and functions which allow running a ray-tracing backend and representing the results as 1D and 2D position- and energy-dependent histograms in publication quality.
Ray-tracing backend is a module or an external program that provides with ray distributions which are then histogrammed and accumulated by pyXRayTracer. Currently, pyXRayTracer supports two backends:
pyXRayTracer should run on Windows and all Unix-like platforms. It was tested under Windows(XP,Vista,7) and Linux(Ubuntu9.10-10.10, OpenSUSE11.3).
Note
on Shadow:
Under Windows Vista and 7 Shadow does not work out of the box because of epath (a part of Shadow) reporting an error. Roman Chernikov (Hasylab) offered a workaround consisting of simply stopping the Windows’ Error Reporting Service. Also on Linux, Shadow could not run after fresh installation of ShadowVUI. I asked Manuel Sanchez del Rio (ESRF) for help and he sent me some library files for replacement, which solved the problem. Ask him for the files or find them in Linux-add-ons folder.
The histogramming is done by means of numpy.
matplotlib is used for plotting. Qt4 drawing backend of matplotlib is assumed. If it is not a default one, specify it manually in matplotlib. For using another drawing backend, plotter must be slightly rewritten in the part of timer event handling.
pyXRayTracer is available as source distribution. The distribution archive also includes documentation and examples.
Unzip the .zip file into a suitable directory, chdir to that directory and run python setup.py install.
| 0.4: | own ray-tracing backend (Raycing) implemented without intensity (reflectivity) and without synchrotron sources |
|---|---|
| 0.5: | Raycing implemented with synchrotron sources |
| 0.6: | Raycing implemented with intensity (reflectivity) |