Skip to main content

A collection of python scripts for determining the crystallinity of cellulosic samples

Project description

SusMat crystallinity calculator

Description

This python script can be used to plot the fitted WAXS data output from TOPAS academic and determine the cellulose (or other polymer) crystallinity using the Ruland method.

Installation

pip install SusMat-Crystallinity-Calculator

Usage

This requires a .txt file saved from TOPAS (academic) as input.

Local usage

To plot the output from one fitting:

sm-cryst --svg filename.txt

To plot the output from a folder full of files using powershell:

Get-ChildItem -Filter *.txt | ForEach-Object -Process {sm-cryst --svg $_.BaseName}

Remote usage (iRODS/ManGO)

Calculate the crystallinity for a collection (folder) containing many .txt files in iRODS. Ensure that the txt files and dat files have the same name in order to copy metadata onto the resulting image files. Enter the full path to the collection in iRODS:

irods-cryst --svg <path_to_collection>

Support

Contact Samuel Eyley.

Roadmap

No planned feature upgrades, reported bugs will be fixed.

Contributing

Contributions are welcome, contact Samuel Eyley

Authors and acknowledgment

Authored by Samuel Eyley

AI Assistance: Code refactoring and architecture improvements contributed by GitHub Copilot (October 2025)

License

MIT License

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

susmat_crystallinity_calculator-2.0.5.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

susmat_crystallinity_calculator-2.0.5-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file susmat_crystallinity_calculator-2.0.5.tar.gz.

File metadata

File hashes

Hashes for susmat_crystallinity_calculator-2.0.5.tar.gz
Algorithm Hash digest
SHA256 648a0bffd6bf7419f75951819b8599ed1b8fa44289d959bed9f447f77a302bb4
MD5 461b21dfd7a5cedff4967dfc5f1fda86
BLAKE2b-256 272cb655cc2c7aca61187b76b47200923baea817e27037d61b7912569f67dc85

See more details on using hashes here.

Provenance

The following attestation bundles were made for susmat_crystallinity_calculator-2.0.5.tar.gz:

Publisher: release.yml on Sustainable-Materials-Lab/SusMat-Crystallinity-Calculator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file susmat_crystallinity_calculator-2.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for susmat_crystallinity_calculator-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dbec79c4ebfd3bf8c2d42c34860982c6285880fbf4cd398eb54185541d11d040
MD5 46244f81ee6a922014622184e2824e60
BLAKE2b-256 7fd4a6cd5b0ec0d45ddc51a8bccc5301a5080c7ff36857e3a178b0d6a0d64307

See more details on using hashes here.

Provenance

The following attestation bundles were made for susmat_crystallinity_calculator-2.0.5-py3-none-any.whl:

Publisher: release.yml on Sustainable-Materials-Lab/SusMat-Crystallinity-Calculator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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