Uses a fully crystalline and fully amorphous endmember to calculate the amorphous fraction
Project description
README.txt
Maintained by Will Gardner - wgardne9@vols.utk.edu
this Python script finds the amorphous fraction of a material by combining a fully crystalline and a fully amorphous data series (endmembers) using a weighing factor and curve fitting. To find the amorphous fraction, both endmembers must be provided as well as the data in which the amorphous fraction needs to be found. From this, the amorphous fraction, a graph of the data and curve fit, and a comparison of the amorphous fractions will be provided.
Running the script will open a window allowing for each data series to be imported. Once both endmembers and the data is imported, pressing 'Calculate Amorphous Fraction' will give the amorphous fraction and both graphs. The calculation will not run unless data is placed within each of these fields. The script should run with any data given, but for best results it can be useful to comment out any non-data lines using '#' at the beginning of the line.
the following libraries must be imported if using the python script:
py -m pip install numpy
py -m pip install matplotlib
py -m pip install scipy
Known Issues:
-
amorphous fraction rounding will not work if fully amorphous datafile is inserted for fraction calculation --FIXED (7/24/25): problem with rounding, now works as intended
-
if fully crystalline datafile is input for fraction calculation, amorphous fraction will not be shown -- FIXED (7/24/25): if crystalline now input after another fraction, then it copies fraction of what came before (linked with 3.)
-
if the calculation datafiles are not put in increasing amorphous fraction order, files with lower amorphous fractions than the file that came before it will copy the amorphous fraction of the file before it. (connected to i_all and max) -- FIXED (7/24/25): amorphous fraction no longer copies one before, works as intended
-
amorphous fraction graph can have annotations placed weirdly instead of directly next to point
-
Weighted Combination can provide amorphous fraction that provides lowest sum of squared differences, but is visually not as good as other fits (log scale maybe?)
Future Additions:
Allow amorphous fraction to be manually input and for resulting data to be plotted
Data initially cuts off at 0.5 for all data to prevent noise, could change to work dynamically based on data
create executable containing all libraries required
Further information on this method of amorphous fraction calculation can be found at:
Include Citation Here
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 weighted_combination-1.0.7.tar.gz.
File metadata
- Download URL: weighted_combination-1.0.7.tar.gz
- Upload date:
- Size: 86.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
899fe7f5aef54ac7fbb6d9a65c6f74ef3a774483aaab1605ed0b0f7b77ac7d01
|
|
| MD5 |
1570832b04b4e0bbf2a9c3785c0218c7
|
|
| BLAKE2b-256 |
0b9eda99eab3fe0ae0fef697d2e41089b2bca30054f3739c9969a8d3e340f410
|
File details
Details for the file weighted_combination-1.0.7-py3-none-any.whl.
File metadata
- Download URL: weighted_combination-1.0.7-py3-none-any.whl
- Upload date:
- Size: 86.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ad74bd8187c0dacb31f45d7652f288c08b7981c5c3513605f815139ab6ac8bb
|
|
| MD5 |
bcc12ae58a0fed5aa5111be4f05ce6db
|
|
| BLAKE2b-256 |
ce309b6bff99314addaee717647adb78f534b36d83877fc2b82a466b9fbc72cd
|