Simulate 1-D and 2-D scattering form factors of prismatic objects
Project description
- 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
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 prismformfactors-1.1.0.tar.gz.
File metadata
- Download URL: prismformfactors-1.1.0.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506d1747ff129c7c0b46998e3823bada516699b03cbfe512917b1462fc267fbb
|
|
| MD5 |
5673f65125f6fb78d5618a6bb9577abc
|
|
| BLAKE2b-256 |
00fcd978f398f523ded2ebeec3affa74056e4d6440c479858e46a0ae37fd09a6
|
File details
Details for the file prismformfactors-1.1.0-py3-none-any.whl.
File metadata
- Download URL: prismformfactors-1.1.0-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2467f10926483dc576cfb01ff04a61096acd721dfb1ce9c913559198e4c37123
|
|
| MD5 |
c38d5a0006afe37b4dc0b66f92dd8c45
|
|
| BLAKE2b-256 |
795b1658d7751fd2ab4be7faf9cdda83ba0a7374d63668e3cfa9f187fad37aa1
|