- This package allows the simulation of the scattering intensity and form factor of particles in the shape of a right prism with a regular polygon cross section with any number of sides. Both 1D intensity profile and 2D images can be simulated.
- Parameters for describing the shape are the length $L$ of the right prism, the number $n$ of the regular polygon cross section and the edge length $E$ of the polygon. Alternatively, the average radius $R_{ave}$ can be used instead of $E$.
- It can also be used with the ipywidgets package to manually fit experimental data with the provided models.
Installation
Package installation can be done using pip command:
pip install prismformfactors
as the package is available on PyPI (https://pypi.org/project/prismformfactors).
Example
add .dat file
and jupyter notebook (with many comments)
make the modification about $\sigma_L$ and $\sigma_w$ in vizualize
References
-
Jules Marcone, Jaime Gabriel Trazo, Rahul Nag, Claire Goldmann, Nicolas Ratel-Ramond, Cyrille Hamon and Marianne Imperor-Clerc (2025) J. Marcone et al. , Form factor of prismatic particles for small-angle scattering analysis, JAC 2025
-
Theory behind code: Wuttke "Numerically stable form factor of any polygon and polyhedron." Journal of Applied Crystallography 54.2 (2021): 580-587
Created on September 5th, 2024 and revised on January 24th, 2025
Creator: Marianne Impéror and Jules Marcone
Original Contributors: Marianne Impéror and Jules Marcone
Metadata
Release files for prismformfactors 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prismformfactors-1.1.0.tar.gz | 33.4 kB | Without provenance | Details for prismformfactors-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prismformfactors-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for prismformfactors-1.1.0-py3-none-any.whl |
Total release size: 70.5 kB
Release files / prismformfactors-1.1.0.tar.gz
| Download URL | prismformfactors-1.1.0.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
506d1747ff129c7c0b46998e3823bada516699b03cbfe512917b1462fc267fbb
|
|
BLAKE2b-256 checksum How to use checksums |
00fcd978f398f523ded2ebeec3affa74056e4d6440c479858e46a0ae37fd09a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / prismformfactors-1.1.0-py3-none-any.whl
| Download URL | prismformfactors-1.1.0-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2467f10926483dc576cfb01ff04a61096acd721dfb1ce9c913559198e4c37123
|
|
BLAKE2b-256 checksum How to use checksums |
795b1658d7751fd2ab4be7faf9cdda83ba0a7374d63668e3cfa9f187fad37aa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Security for prismformfactors 1.1.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.