PyPartMC 1.3.13__cp312-cp312-win_amd64.whl → 1.4.2__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PyPartMC might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PyPartMC
3
- Version: 1.3.13
3
+ Version: 1.4.2
4
4
  Summary: Python interface to PartMC
5
5
  Author: PyPartMC team (see https://github.com/open-atmos/PyPartMC/graphs/contributors)
6
6
  Author-email: nriemer@illinois.edu
@@ -18,6 +18,14 @@ Requires-Dist: pytest-order; extra == "tests"
18
18
  Requires-Dist: fastcore!=1.5.8; extra == "tests"
19
19
  Requires-Dist: ghapi; extra == "tests"
20
20
  Requires-Dist: scipy; extra == "tests"
21
+ Provides-Extra: examples
22
+ Requires-Dist: matplotlib!=3.10.0; extra == "examples"
23
+ Requires-Dist: ipywidgets; extra == "examples"
24
+ Requires-Dist: voila; extra == "examples"
25
+ Requires-Dist: open-atmos-jupyter-utils; extra == "examples"
26
+ Requires-Dist: PySDM; extra == "examples"
27
+ Requires-Dist: PyMieScatt; extra == "examples"
28
+ Requires-Dist: SciPy; extra == "examples"
21
29
  Dynamic: author
22
30
  Dynamic: author-email
23
31
  Dynamic: description
@@ -42,6 +50,7 @@ Additionally, the ability to easily package examples, simple simulations, and re
42
50
  allows PyPartMC to support the efforts of many members of the scientific community, including researchers,
43
51
  instructors, and students, with nominal software and hardware requirements.
44
52
 
53
+ Documentation of PyPartMC is hosted at https://open-atmos.github.io/PyPartMC.
45
54
  PyPartMC is implemented in C++ and it also constitutes a C++ API to the PartMC Fortran internals.
46
55
  The Python API can facilitate using PartMC from other environments - see, e.g., Julia and Matlab examples below.
47
56
 
@@ -53,24 +62,24 @@ If interested in contributing to PyPartMC, please have a look a the [notes for d
53
62
 
54
63
  [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
55
64
  [![Copyright](https://img.shields.io/static/v1?label=Copyright&color=249fe2&message=UIUC&)](https://atmos.illinois.edu/)
56
- [![Github Actions Build Status](https://github.com/open-atmos/PyPartMC/workflows/tests+pypi/badge.svg?branch=main)](https://github.com/open-atmos/PyPartMC/actions)
65
+ [![tests+pypi](https://github.com/open-atmos/PyPartMC/actions/workflows/tests+pypi.yml/badge.svg)](https://github.com/open-atmos/PyPartMC/actions/workflows/tests+pypi.yml)
57
66
  [![API docs](https://shields.mitmproxy.org/badge/docs-pdoc.dev-brightgreen.svg)](https://open-atmos.github.io/PyPartMC/)
58
67
  [![codecov](https://codecov.io/gh/open-atmos/PyPartMC/graph/badge.svg?token=27IK9ZIQXE)](https://codecov.io/gh/open-atmos/PyPartMC)
59
68
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7662635.svg)](https://doi.org/10.5281/zenodo.7662635)
60
69
  [![PyPI version](https://badge.fury.io/py/PyPartMC.svg)](https://pypi.org/p/PyPartMC)
61
70
  [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
62
71
 
63
- ## TL;DR (try in a Jupyter notebook)
64
-
65
72
  [![Python 3](https://img.shields.io/static/v1?label=Python&logo=Python&color=3776AB&message=3)](https://www.python.org/)
66
73
  [![Linux OK](https://img.shields.io/static/v1?label=Linux&logo=Linux&color=yellow&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Linux)
67
74
  [![macOS OK](https://img.shields.io/static/v1?label=macOS&logo=Apple&color=silver&message=%E2%9C%93)](https://en.wikipedia.org/wiki/macOS)
68
75
  [![Windows OK](https://img.shields.io/static/v1?label=Windows&logo=Windows&color=white&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Windows)
69
76
  [![Jupyter](https://img.shields.io/static/v1?label=Jupyter&logo=Jupyter&color=f37626&message=%E2%9C%93)](https://jupyter.org/)
70
77
 
71
- ```python
72
- ! pip install PyPartMC
73
- import PyPartMC
78
+ ## Installation
79
+
80
+ ### Using the command-line `pip` tool (also applies to conda environments)
81
+ ```bash
82
+ pip install PyPartMC
74
83
  ```
75
84
 
76
85
  Note that, depending on the environment (OS, hardware, Python version), the pip-install invocation
@@ -79,9 +88,21 @@ In the latter case, a Fortran compiler and some development tools includiong CMa
79
88
  are required (while all non-Python dependencies are included in the PyPartMC source archive).
80
89
  In both cases, all Python dependencies will be resolved by pip.
81
90
 
91
+ ### In a Jupyter notebook cell (also on Colab or jupyter-hub instances)
92
+
93
+ ```python
94
+ ! pip install PyPartMC
95
+ import PyPartMC
96
+ ```
97
+
82
98
  #### Jupyter notebooks with examples
83
99
  Note: clicking the badges below redirects to cloud-computing platforms. The mybinder.org links allow anonymous execution, Google Colab requires logging in with a Google account, ARM JupyerHub requires logging in with an ARM account (and directing Jupyter to a particular notebook within the `examples` folder).
84
100
 
101
+ The example notebooks feature additional dependencies that can be installed with:
102
+ ```bash
103
+ pip install PyPartMC[examples]
104
+ ```
105
+
85
106
  - Urban plume scenario demo (as in [PartMC](https://github.com/compdyn/partmc/tree/master/scenarios/1_urban_plume)):
86
107
  [![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PyPartMC/blob/main/examples/particle_simulation.ipynb)
87
108
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyPartMC/blob/main/examples/particle_simulation.ipynb)
@@ -108,6 +129,11 @@ Note: clicking the badges below redirects to cloud-computing platforms. The mybi
108
129
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyPartMC/blob/main/examples/cloud_parcel.ipynb)
109
130
  [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PyPartMC.git/main?urlpath=lab/tree/examples/cloud_parcel.ipynb)
110
131
  [![ARM JupyterHub](https://img.shields.io/static/v1?label=launch%20in&logo=jupyter&color=lightblue&message=ARM+JupyterHub)](https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/open-atmos/PyPartMC&branch=main&urlPath=)
132
+ - Coagulation Model Intercomparison with PySDM, Droplets.jl:
133
+ [![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos//PyPartMC/blob/main/examples/additive_coag_comparison.ipynb)
134
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyPartMC/blob/main/examples/additive_coag_comparison.ipynb)
135
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PyPartMC.git/main?urlpath=lab/tree/examples/additive_coag_comparison.ipynb)
136
+ [![ARM JupyterHub](https://img.shields.io/static/v1?label=launch%20in&logo=jupyter&color=lightblue&message=ARM+JupyterHub)](https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/open-atmos/PyPartMC&branch=main&urlPath=)
111
137
 
112
138
  ## Features
113
139
 
@@ -273,6 +299,17 @@ fprintf('%g # kg/m3\n', dot([masses{:}], [num_concs{:}]))
273
299
 
274
300
  PyPartMC is used within the [test workflow of the PySDM project](https://github.com/atmos-cloud-sim-uj/PySDM/tree/main/tests/smoke_tests/box/partmc).
275
301
 
302
+ ## Other packages with relevant feature scope
303
+
304
+ - [aerosolGDEFoam](https://openaerosol.sourceforge.io/): OpenFOAM CFD-coupled aerosol dynamics including nucleation, coagulation, and surface growth
305
+ - [AIOMFAC and AIOMFAC-web](http://www.aiomfac.caltech.edu/): Fortran-implemented aerosol thermodynamic model for calculation of activity coefficients in organic-inorganic mixtures – from simple binary solutions to complex multicomponent systems
306
+ - [DustPy](https://stammler.github.io/dustpy/): Python package for modelling dust evolution in protoplanetary disks (differences: focus on astrophysical applications vs. atmospheric aerosol)
307
+ - [multilayerpy](https://github.com/tintin554/multilayerpy): kinetic multi-layer model for aerosol particles and films
308
+ - [PyBox](https://pybox.readthedocs.io): aerosol simulation model featuring gas and particle chamistry (differences: PyBox focuses on chemical mechanisms; PyPartMC is an interface to PartMC which focuses on physics - e.g., collisions of aerosol particles - while chemical processes are handled with external software, e.g., CAMP or MOSAIC)
309
+ - [PyCHAM](https://github.com/simonom/PyCHAM): CHemistry with Aerosol Microphysics in Python Box Model for modelling of indoor environments, including aerosol chambers
310
+ - [PySDM](https://open-atmos.github.io/PySDM): particle-based Monte-Carlo aerosol-cloud simulation package (differences: PySDM focuses on growth and breakup processes relevant to cloud droplets; PyPartMC focuses on processes relevant to air pollutants and their chemical and physical transformations)
311
+ - [SSH-aerosol](https://github.com/sshaerosol/ssh-aerosol): C++/Fortran package for simulating evolution of primary and secondary atmospheric aerosols
312
+
276
313
  ## FAQ
277
314
  - Q: How to install PyPartMC with MOSAIC enabled?
278
315
  A: Installation can be done using `pip`, however, `pip` needs to be instructed not to use binary packages available at pypi.org but rather to compile from source (pip will download the source from pip.org), and the path to compiled MOSAIC library needs to be provided at compile-time; the following command should convey it:
@@ -314,6 +351,47 @@ Could not find NC_M4 using the following names: m4, m4.exe
314
351
  ```
315
352
  Try installing `m4` (e.g., using [MSYS2](https://packages.msys2.org/package/m4?repo=msys&variant=x86_64) on Windows).
316
353
 
354
+ ## Acknowledgement and citations
355
+
356
+ We would greatly appreciate citation of the PartMC model description paper (Riemer et al., 2009)
357
+ and the PyPartMC description paper (D’Aquino et al., 2024) if PyPartMC was used in your study.
358
+ The citations are:
359
+ - Riemer, N., M. West, R. A. Zaveri, R. C. Easter: Simulating the evolution of soot
360
+ mixing-state with a particle-resolved aerosol model
361
+ J. Geophys. Res., 114, D09202, 2009, DOI: [10.1029/2008JD011073](https://doi.org/10.1029/2008JD011073)
362
+ - D’Aquino, Z., S. Arabas, J. H. Curtis, A. Vaishnav, N. Riemer, M. West: PyPartMC: A
363
+ pythonic interfact to a particle-resolved, Monte Carlo aerosol simulation framework
364
+ SoftwareX, 25, 101613, 2024, DOI: [10.1016/j.softx.2023.101613](https://doi.org/10.1016/j.softx.2023.101613)
365
+
366
+ The following paragraph provides a more substantial description of PartMC (text released into the public domain and can be freely copied by anyone for any purpose):
367
+
368
+ > PartMC is a stochastic, particle-resolved aerosol box model. It tracks the
369
+ composition of many computational particles (10<sup>4</sup> to 10<sup>6</sup>) within a well-mixed air
370
+ volume, each represented by a composition vector that evolves based on physical
371
+ and chemical processes. The physical processes—including Brownian coagulation,
372
+ new particle formation, emissions, dilution, and deposition—are simulated using a
373
+ stochastic Monte Carlo approach via a Poisson process while chemical processes are
374
+ simulated deterministically for each computational particle. The weighted flow
375
+ algorithm (DeVille, Riemer, and West, 2011, 2019) enhances efficiency and reduces
376
+ ensemble variance. Detailed numerical methods are described in Riemer et al.
377
+ (2009), DeVille et al. (2011, 2019), and Curtis et al. (2016). PartMC is open-source
378
+ under the GNU GPL v2 and available at
379
+ [github.com/compdyn/partmc](https://github.com/compdyn/partmc).
380
+ >
381
+ > References:
382
+ > - Curtis, J. H., M. D. Michelotti, N. Riemer, M. T. Heath, M. West: Accelerated
383
+ simulation of stochastic particle removal processes in particle-resolved aerosol
384
+ models, J. Computational Phys., 322, 21-32, 2016, DOI: [10.1016/j.jcp.2016.06.029](https://doi.org/10.1016/j.jcp.2016.06.029)
385
+ > - DeVille, L., N. Riemer, M. West, Convergence of a generalized weighted flow
386
+ algorithm for stochastic particle coagulation, J. Computational Dynamics, 6, 69-94,
387
+ 2019, DOI: [10.3934/jcd.2019003](https://doi.org/10.3934/jcd.2019003)
388
+ > - DeVille, R. E. L., N. Riemer, M. West, The Weighted Flow Algorithm (WFA) for
389
+ stochastic particle coagulation, J. Computational Phys., 230, 8427-8451, 2011,
390
+ DOI: [10.1016/j.jcp.2011.07.027](https://doi.org/10.1016/j.jcp.2011.07.027)
391
+ > - Riemer, N., M. West, R. A. Zaveri, R. C. Easter, Simulating the evolution of soot
392
+ mixing-state with a particle-resolved aerosol model, J. Geophys. Res., 114, D09202,
393
+ 2009., DOI: [10.1029/2008JD011073](https://doi.org/10.1029/2008JD011073)
394
+
317
395
  ## Credits
318
396
 
319
397
  #### PyPartMC:
@@ -0,0 +1,7 @@
1
+ _PyPartMC.cp312-win_amd64.pyd,sha256=VQrcsD2mtkLBh2NvadSb-06C1i_KURcBv7sa1h3WWHI,9585664
2
+ PyPartMC/__init__.py,sha256=72fDfFXn4xRxfdLGOx8NCml41RxzBitBNZ-sUuvH-x0,2295
3
+ PyPartMC-1.4.2.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
4
+ PyPartMC-1.4.2.dist-info/METADATA,sha256=F-aRm-Rz0Y0exTmr2D3E9fNTB36sEVhdZbsqOQD3ucM,27322
5
+ PyPartMC-1.4.2.dist-info/WHEEL,sha256=cRmSBGD-cl98KkuHMNqv9Ac9L9_VqTvcBYwpIvxN0cg,101
6
+ PyPartMC-1.4.2.dist-info/top_level.txt,sha256=PJxy22pTnxcBhqrb6r4AIL32rkxA61gzw7ohlzybgSM,19
7
+ PyPartMC-1.4.2.dist-info/RECORD,,
Binary file
@@ -1,7 +0,0 @@
1
- _PyPartMC.cp312-win_amd64.pyd,sha256=VoUWG0P6iuivvVs_6gmjUApIMPHw2RuxQh44aQBRXvg,9586688
2
- PyPartMC/__init__.py,sha256=72fDfFXn4xRxfdLGOx8NCml41RxzBitBNZ-sUuvH-x0,2295
3
- PyPartMC-1.3.13.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
4
- PyPartMC-1.3.13.dist-info/METADATA,sha256=N_3ehnEBJXVh7CEAhaaKWdbULbUM7-UUFNiX23IsWp0,20976
5
- PyPartMC-1.3.13.dist-info/WHEEL,sha256=cRmSBGD-cl98KkuHMNqv9Ac9L9_VqTvcBYwpIvxN0cg,101
6
- PyPartMC-1.3.13.dist-info/top_level.txt,sha256=PJxy22pTnxcBhqrb6r4AIL32rkxA61gzw7ohlzybgSM,19
7
- PyPartMC-1.3.13.dist-info/RECORD,,