Radial Distribution Function
This package provides the radial distribution function to analyze the radial density of
particles around other particles. The package provides a single function inner_rdf that
calculates the RDF but excludes the border regions (as they would require n-dimensional
intersection of shapes, which isn't computationally feasible).
A future version, if my short attention span permits it, will provide an rdf function
that handles the 2D and 3D cases with the inclusion of the border regions.
Example
from radialdf import inner_rdf
import numpy as np
import plotly.graph_objs as go
# Generate 10000 random particles with 3 coordinates between 0 and 100
particles = np.random.rand(10000, 3) * 100
# Define a volume from 0 to 100 on 3 axes
box = [[0, 100]] * 3
# Check the radial distribution, which should be pretty boring and flat
g = inner_rdf(box, particles, 20, 0.2)
go.Figure(go.Scatter(x=[i * 0.2 for i in range(21)], y=g)).show()
Metadata
Release files for radialdf 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| radialdf-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for radialdf-0.0.1-py3-none-any.whl |
Release files / radialdf-0.0.1-py3-none-any.whl
| Download URL | radialdf-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5830c929a7fdf7a0186e80f35af12ffc71ee4ccf44c523b7b793afd41696202
|
|
BLAKE2b-256 checksum How to use checksums |
58afbbe95dec9705d00d8a0c907f39beaff7495335090c9b200cbcd722489d1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6
|
Security for radialdf 0.0.1
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.