Toolkit for crystal XRD analysis
Project description
pyixrd
What's pyixrd?
A toolkit for crystal XRD analysis.
How to use pyixrd?
You can use it by python as following:
import pyixrd
result=pyixrd.symmetry(data= ,level= ,topk= )
Notice! When the dependent model(must) in the toolkit fails to download, you can install the model offline:
1.Download the model file:
https://github.com/Yi-he/pyixrd/releases/download/v0.1.1/crystal_system.pth
2.Place files in the following path: Linux/Mac: /root/miniconda3/lib/python3.x/site-packages/pyixrd/utils/ Windows: /Lib/site-packages/pyixrd/utils/
You must abide by the following rules when using the above code:
1.prepare your crystal XRD patterns.
Parameter 'data' should be your XRD pattern file path, and the file only supports .txt format.
The first column in .txt should be 2θ values of the XRD pattern ( 2θ∈[5°, 90°], with a step size of 0.01°, and a total length of 8501).
The second column is intensity values corresponding to the 2θ.
A single comma followed by a space is used to sparate each 2θ value from its corresponding intensity value.
Sample data are as follows:
5.0, 0.0
5.01, 0.029
5.02, 6.825
…, …
89.98, 2.899
89.99, 9.767
90.0, 0.0
2.Parameter 'level'
Parameter 'level' should be 'crystal system' or 'space group', it defaults to 'crystal system'.
3.Parameter 'topk'
When level='crystal system', topk should be greater than 0 and less than or equal to 7, it defaults to 3; When level='space group', topk should be greater than 0 and less than or equal to 230, it defaults to 5.
4.The result
The prediction results of TOPK crystal system or space group will be given.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyixrd-0.1.4.tar.gz.
File metadata
- Download URL: pyixrd-0.1.4.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d5048e8b507d9da6f036feb390670cc28609cbe71b79101cf2e093b53d3326
|
|
| MD5 |
d54f827aca74f7d965d7353c001fb018
|
|
| BLAKE2b-256 |
19a9e54d27e9ce90121ae415707ff53027d02b5f5a62f11d8ed73dbedf2c8114
|
File details
Details for the file pyixrd-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pyixrd-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c32280b16051d1cddcb3c3209a1a6f2c80c176aa9f5377422de64f0a9476eb0f
|
|
| MD5 |
d8119f98f33db132e329f63d745eb187
|
|
| BLAKE2b-256 |
b7774dd825e4ff30add27724118ddbfc22b63bd85781507b86dea894c5f5a2eb
|