Distribution of LaueTools Package from gitlab.esrf.fr repository for pip
Project description
Welcome to LaueTools's DOCUMENTATION!
Last revision (March 2020)
LaueTools code and documentation at:
https://lauetools.readthedocs.io/en/latest/index.html
1- Download LaueTools code
-
the very last version of the code at gitlab.esrf.fr (you are also welcome to fork this project):
-
last (or older releases) with repository on pypi
https://pypi.org/project/LaueTools/
if pip is installed:
.. code-block:: python
pip install lauetools
2a- Launch Graphical User Interfaces of LaueTools
- start Lauetools GUIs from command line :
Normally, in a command window (if environment variables are well set) 3 main GUIs can be launched:
- lauetools for the main GUI
- peaksearch for batch Laue pattern peak search processing
- indexrefine for batch Laue pattern indexing and unit cell (strain) refinement
To deal with relative import, from the parent folder of LaueTools, the package name ‘LaueTools’ must be specified to the python interpreter as following
Examples:
- python -m LaueTools.LaueToolsGUI
- python -m LaueTools.GUI.LaueSimulatorGUI
- python -m LaueTools.GUI.PeaksearchGUI
The two last GUIs (LaueSimulatorGUI, PeaksearchGUI) can be accessed by the first main one, LaueToolsGUI
There are additional basic GUIs for batch processing located in FileSeries folder:
- python -m LaueTools.FileSeries.Peak_Search
- python -m LaueTools.FileSeries.Index_Refine
- python -m LaueTools.FileSeries.Build_summary
- python -m LaueTools.FileSeries.Plot_Maps2
-
within interactive python (say, ipython -i), GUI can be started thanks to a start() function:
-
In [1] : import LaueTools.LaueToolsGUI as LTGUI
-
In [2] : LTGUI.start()
-
.. note:: in the LaueTools folder :
- neither > python LaueToolsGUI
- nor in >ipython -i : > run LaueToolsGUI will work…
2b- Use LaueTools module as a library
With pip installation, LaueTools package will be included to python packages. Therefore any module will be callable as the following:
-In [1] : import LaueTools.readmccd as rmccd
-In [2] : rmccd.readCCDimage(‘myimage.tif’)
In jupyter-notebook, it is also simple in the same manner:
.. image:: Images/notebook0.jpg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for LaueTools-3.0.0.77-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1a9d1a84eb38aa7bc1d6c5f5c98a1abec1350014d853e9e08a5fe9ec0fd8f6 |
|
MD5 | 1e43c1b70b67dbbe52d9ca63ea6da994 |
|
BLAKE2b-256 | c08530026572d09350b46cc6a151a8f0326af6b915a16feee991e93c61bf3dc4 |