Skip to main content

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:

  1. 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

  2. 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.)

  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

  4. amorphous fraction graph can have annotations placed weirdly instead of directly next to point

  5. 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


Updates:

1.0.6 - First version added to PyPi

1.0.7 - Updated README with new information

1.0.8 - Added test files to packaging to run through how program works

Further information on this method of amorphous fraction calculation can be found at:

Include Citation Here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weighted_combination-1.0.8.tar.gz (86.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weighted_combination-1.0.8-py3-none-any.whl (86.8 MB view details)

Uploaded Python 3

File details

Details for the file weighted_combination-1.0.8.tar.gz.

File metadata

  • Download URL: weighted_combination-1.0.8.tar.gz
  • Upload date:
  • Size: 86.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for weighted_combination-1.0.8.tar.gz
Algorithm Hash digest
SHA256 55f6dc3a53dc0555829b2913bf7b889d08b8fee5c064a2c9dc66a4d869fa5766
MD5 e95cb9a1b025c1078a0140bfabc36512
BLAKE2b-256 795db7c845df45a819aa0510d0b378b9fa914d138bace187dd42ccbf375b684f

See more details on using hashes here.

File details

Details for the file weighted_combination-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for weighted_combination-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1583e9ddd3a5cf369b104e2c49a28de304d637ea8d4711f4eaaae6a03a14a06b
MD5 027e8d3637a6b9811dad19f6a668e8da
BLAKE2b-256 53f6d085d7a1ec49c4413c055f3ce2039e2f2ecf8460a7aa405a1f03c7e96acc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page