Registry / data / pypartmc

pypartmc

JSON →
library2.1.0pypypi✓ verified 86d ago

Python interface to the PartMC (Particle Monte Carlo) model for simulating atmospheric aerosol dynamics. Version 2.0.6. Uses nanobind bindings. Irregular release cadence, roughly monthly.

pip install pypartmc
INSTALL
IMPORT
SIG · PYPARTMC
P
pypartmc
datapythonv2.1.0
Install
4.2s avg
Import
Disk
103MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.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 4.2s · import 0.000s · 101MB
103MB installed
● package 103MB
Code
Verified usage

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

PyPartMC
import PyPartMC
Top-level module, not pypartmc or partmc

Initialize aerosol species data, create gas state, set concentrations.

import PyPartMC as ppmc import numpy as np aero_data = ppmc.AeroData( ["SO4", "NaCl"], [ppmc.AeroData.species_data("SO4", density=1.8, kappa=0.5), ppmc.AeroData.species_data("NaCl", density=2.16, kappa=1.0)] ) state = ppmc.GasState(aero_data) state.set_conc(np.array([1e-5, 2e-5])) print(state.conc)
Debug
Known issues
breakingPyPartMC v2.0.0 switched from pybind11 to nanobind. Code compiled against previous versions may need reinstallation. The module import path remains 'PyPartMC'.
fix
Reinstall pypartmc and ensure all dependencies are up-to-date.
affects: >=2.0.0,<3.0.0
gotchaAlways use 'import PyPartMC', not 'import pypartmc' or 'import partmc'. The package name is pypartmc on PyPI, but the Python module is PyPartMC (case-sensitive).
fix
Use 'import PyPartMC'.
affects: all
deprecatedSome older functions (e.g., AeroData.from_json) may be removed in future versions. Check the changelog for deprecation notices.
fix
Check documentation for current API.
affects: >=2.0.0
Errors
Common errors & fixes
ImportError: No module named PyPartMC
The Python module is named 'PyPartMC', but package is 'pypartmc'. You may have installed the wrong package or used wrong import.
fix
Run 'pip install pypartmc' and then 'import PyPartMC'.
ModuleNotFoundError: No module named 'partmc'
Common mistake: trying to import 'partmc' instead of 'PyPartMC'.
fix
Use 'import PyPartMC'.
ValueError: species 'SO4' not found
AeroData species definitions must include all properties (density, kappa). Missing or misnamed species cause this.
fix
Provide complete species_data for each species, e.g., ppmc.AeroData.species_data('SO4', density=1.8, kappa=0.5).
Upgrade
Version history
2.1.0latest on PyPI · released Jun 18, 2026
Audit
Dependencies
numpyrequiredNumerical arrays, used in input/output
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources