-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
968897e
commit b9dd881
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## About | ||
|
||
Python API for opXRD database. See more at https://xrd.aimat.science | ||
|
||
## Setup | ||
|
||
### System level requirements | ||
The data file import functionalities provided by the xrdpattern requirement are largely built on the C++ library [xylib](https://github.com/wojdyr/xylib) so beyond a standard python install this library also requires: | ||
- A C++ compiler and standard library | ||
- A C++ to python bridge (Swig) | ||
``` | ||
sudo apt install build-essential # GNU C++ compiler | ||
sudo apt install libboost-all-dev # C++ libraries provided by Boost | ||
sudo apt install swig # python -> C++ bridge | ||
``` | ||
|
||
For Windows >10 you may try the following in PowerShell (requires [Chocolatey](https://chocolatey.org/)): | ||
``` | ||
choco install mingw # C++ compiler and std library | ||
choco install swig # python -> C++ bridge | ||
``` | ||
|
||
### Python library | ||
Once the system level requirements are installed, the library can be installed using pip: | ||
``` | ||
pip install opxrd | ||
``` |