Registry / data / freud-analysis

freud-analysis

JSON →
library3.5.0pypypi✓ verified 34d ago

Freud is a Python library for powerful, efficient trajectory analysis in scientific Python, targeting molecular dynamics and particle-based simulations. Version 3.5.0 supports Python >=3.12, uses abi3 wheels, and is released on a regular cadence (quarterly or more).

dataai-ml
Install & Compatibility
Where this runs
tested against v3.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.9s · import 1.212s · 230MB
233MB installed
● package 233MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Top-level package. Use freud.box, freud.density, freud.order etc.

import freud

Box is a class in freud.box module.

from freud.box import Box

RDF is in freud.density, not top-level.

from freud.density import RDF

NeighborList is in freud.locality.

from freud.locality import NeighborList

Create a box, random points, compute RDF and neighbor list.

import freud import numpy as np # Create a simulation box and random points box = freud.box.Box.cube(10.0) points = np.random.uniform(-5, 5, (100, 3)) # Compute radial distribution function rdf = freud.density.RDF(bins=100, r_max=5.0) rdf.compute(system=(box, points)) print(rdf.r, rdf.rdf) # Compute neighbors nlist = freud.locality.LinkCell().compute(system=(box, points), num_neighbors=6) print(nlist.nlist.id_i, nlist.nlist.id_j)
Debug
Known footguns
breakingIn freud v3.0.0, the 'normalize' argument to freud.density.RDF was renamed to 'normalization_mode'.
breakingIn freud v3.0.0, freud.order.Nematic uses orientation vectors instead of quaternions. Old code using quaternions will break.
breakingfreud v3.0.0 removed freud.order.Translational. It was already deprecated.
deprecatedSupport for Python 3.8, 3.9, 3.10, 3.11 removed in freud v3.5.0 (requires >=3.12).
gotchaNeighborList from certain compute objects may become invalid if the compute object is garbage collected (fixed in v2.13.0).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
23 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
claudebot
3
dotbot
1
script
1
bingbot
1
chatgpt-user
1
Resources