Skip to main content

AMORPH

(c) 2016–2018 Brendon J. Brewer and Michael Rowe

AMORPH is free software, released under the GNU General Public License, version 3. See the LICENSE file for details.

  • The executables are located in src/dist

Using the PyPI package

The associated python package is for the postprocessing of AMORPH results.

To install, run python3 -m pip install pyamorph-ccoverstreet or python -m pip install pyamorph-ccoverstreet

To use:

import pyamorph

pyamorph.amorph_postprocess()

or

In your terminal, run python3 -m pyamorph to perform analysis on the files in your current directory

Guide to installing and operating (building from source) Ignore python information below:

IMPORTANT: New Build Process

  • git clone https://github.com/ccoverstreet/AMORPH --recursive
  • cd AMORPH/src
  • make. This may take a minute or two.
  • ./AMORPH (make sure that all necessary config/data files are in the same directory)

AMORPH is hosted at the following URL:

https://bitbucket.org/eggplantbren/amorph

The repository includess the source code, Python scripts for viewing results, example datasets, and the Windows executable file (AMORPH.exe), which is the easiest way of using AMORPH. It is located (along with almost everything else) in the src subdirectory. The Python scripts make use of the packages Numpy, matplotlib, Pandas, and yaml, and has only been tested under Python 3. https://www.anaconda.com/download/ is a convenient distribution of Python which comes with these packages pre-installed.

The AMORPH program can be installed anywhere on the computer. All data files to be analysed by AMORPH need to be in .txt file format, space delimited, with no headers (i.e., just two columns of numbers). For simplicity, text files for processing should be located in the same folder as the AMORPH program. To configure a run, edit the file config.yaml to specify all the details of the data file and other things you might want to tweak.

Four test datasets are stored in the repository (0%glass_rhyolite_Emperyon.txt, 50% glass.02step3secdwell.txt, 90%_glass_basalt_Emperyon.txt, and easy_data.txt). The program is set to run until 10,000 saved parameter sets have been generated. Outputs may be viewed at any point, however, closing the program before reaching 10,000 will reduce the accuracy of the final calculations. After running for a while, the output can be viewed by running the Python script showresults.py:

python showresults.py

Automatically generated figures may be closed or saved. Upon closing the figures, numerical results will be displayed in Anaconda prompt window, and a CSV file of (some) output will be written to the disk. Important: make sure to save the results or copy the output file before starting another run as results will otherwise be overwritten.

Recommendations for Use

Based on experimentation, several recommendations for optimization of use and accuracy may be suggested to potential users. First, the time of the analysis is dependent on the number of data points to be analyzed. Thus to optimize analysis time, we recommend an XRD instrument step of 0.02 degrees/step. While coarser steps will reduce analysis time, the peak broadening associated with it may reduce precision of the fitting. We also recommend reducing the total scan range to between 10–40 degrees (2theta). This has two advantages;

  1. it will reduce the number of data points for processing and 2) outside this range the X-ray diffraction pattern is dominated by only the crystalline componentry and thus incorporation of higher 2-theta values skews measured results to higher measured crystallinities.

Background positions are currently optimized for the use of CuKa x-ray sources, with linear fits between 10–40° 2theta as described in the manuscript. For other X-ray sources, it may be necessary to adjust these fixed points to provide the best fit to the diffraction patterns. This may be modified by changing the values in control_points.in (which can be opened in any text editor). For some analyses, typically when more data points are analysed (5–50 degrees 2theta) or for highly crystalline materials, the numerical settings of the DNest4 sampler are not optimal for obtaining useful results, and need to be made more conservative (making the run slower). This is typically manifested in Python outputs as pale colours in the model curves in the output plots (showing hardly any samples from the posterior) and a low number of data points for subsequent histograms. The settings can be modified in these instances by opening the OPTIONS file in any text editor. Parameter values on line 4 (new level interval) and line 8 (Backtracking scale length) can each independently be doubled. Note, while this will improve model outputs, it significantly lengthens the time of analysis. Therefore we only recommend changing one of these two parameters at a time.

Using the source code

If you don't want to use AMORPH.exe and would rather compile AMORPH yourself, you'll need the dependencies yaml-cpp, boost, and DNest4.

Metadata

Release files for pyamorph-ccoverstreet 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyamorph-ccoverstreet 0.2.0
File Size Uploaded Provenance Actions
pyamorph_ccoverstreet-0.2.0.tar.gz 26.1 kB Without provenance Details for pyamorph_ccoverstreet-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyamorph-ccoverstreet 0.2.0
File Interpreter ABI Platform Actions
pyamorph_ccoverstreet-0.2.0-py3-none-any.whl Python 3 none any Details for pyamorph_ccoverstreet-0.2.0-py3-none-any.whl

Total release size: 54.3 kB

Release files / pyamorph_ccoverstreet-0.2.0.tar.gz

Download URL pyamorph_ccoverstreet-0.2.0.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f825689d1500712c1b95676823f0d04aa53055cf93210c1ea2e5427d2c6999dd
BLAKE2b-256 checksum
How to use checksums
22e582dfa699d57c6cb7f9014a7b4ae01acbf1ad81c80947acf8b18e641268e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / pyamorph_ccoverstreet-0.2.0-py3-none-any.whl

Download URL pyamorph_ccoverstreet-0.2.0-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e48794ee4eead7236f6c1ff5643ddcec42921381c00c8c82b23d2e01e137b43
BLAKE2b-256 checksum
How to use checksums
00836f53a8331a646f6370c0495aa5a253b766b36691dd7f6b40f747d5ac5050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for pyamorph-ccoverstreet 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page