PyPartMC 1.2.1__cp39-cp39-win_amd64.whl → 1.3.1__cp39-cp39-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.
- PyPartMC/__init__.py +4 -0
- {PyPartMC-1.2.1.dist-info → PyPartMC-1.3.1.dist-info}/METADATA +2 -68
- PyPartMC-1.3.1.dist-info/RECORD +7 -0
- _PyPartMC.cp39-win_amd64.pyd +0 -0
- PyPartMC-1.2.1.dist-info/RECORD +0 -7
- {PyPartMC-1.2.1.dist-info → PyPartMC-1.3.1.dist-info}/LICENSE +0 -0
- {PyPartMC-1.2.1.dist-info → PyPartMC-1.3.1.dist-info}/WHEEL +0 -0
- {PyPartMC-1.2.1.dist-info → PyPartMC-1.3.1.dist-info}/top_level.txt +0 -0
PyPartMC/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPartMC
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
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
|
|
@@ -29,6 +29,7 @@ The Python API can facilitate using PartMC from other environments - see, e.g.,
|
|
|
29
29
|
|
|
30
30
|
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2024 (SoftwareX)](https://doi.org/10.1016/j.softx.2023.101613) (please cite if PyPartMC is used in your research).
|
|
31
31
|
For a list of talks and other relevant resources, please see [project Wiki](https://github.com/open-atmos/PyPartMC/wiki/).
|
|
32
|
+
If interested in contributing to PyPartMC, please have a look a the [notes for developers](https://github.com/open-atmos/PyPartMC/tree/main/CONTRIBUTING.md).
|
|
32
33
|
|
|
33
34
|
[](https://asr.science.energy.gov/) [](https://www.ncn.gov.pl/?language=en)
|
|
34
35
|
|
|
@@ -246,61 +247,6 @@ fprintf('%g # kg/m3\n', dot([masses{:}], [num_concs{:}]))
|
|
|
246
247
|
|
|
247
248
|
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).
|
|
248
249
|
|
|
249
|
-
## Implementation outline
|
|
250
|
-
|
|
251
|
-
- PyPartMC is written in C++, Fortran and uses [pybind11](https://pybind11.readthedocs.io/en/stable/) and [CMake](https://cmake.org/).
|
|
252
|
-
- JSON support is handled with [nlohmann::json](https://github.com/nlohmann/json) and [pybind11_json](https://github.com/pybind/pybind11_json)
|
|
253
|
-
- PartMC and selected parts of SUNDIALS are statically linked (and compiled in during `pip install` or `python -m build`)
|
|
254
|
-
- C (SUNDIALS, netCDF), C++ (pybind11, ...) and Fortran (PartMC, CAMP, netCDF-fortran) dependencies are linked through [git submodules](https://github.com/open-atmos/PyPartMC/blob/main/.gitmodules)
|
|
255
|
-
- MOSAIC dependency is optionally linked through setting the environmental variable `MOSAIC_HOME`
|
|
256
|
-
- a [drop-in replacement of the PartMC spec file routines](https://github.com/open-atmos/PyPartMC/blob/main/src/spec_file_pypartmc.F90) is used for i/o from/to JSON
|
|
257
|
-
|
|
258
|
-
## Implementation architecture
|
|
259
|
-
|
|
260
|
-
```mermaid
|
|
261
|
-
flowchart TD
|
|
262
|
-
subgraph J ["Julia"]
|
|
263
|
-
julia_user_code["Julia user code"] --> PyCall.jl
|
|
264
|
-
end
|
|
265
|
-
subgraph M ["Matlab"]
|
|
266
|
-
matlab_user_code["Matlab user code"] --> matlab_python["Matlab built-in\nPython interface"]
|
|
267
|
-
end
|
|
268
|
-
subgraph P ["Python"]
|
|
269
|
-
python_user_code -.-> NumPy
|
|
270
|
-
python_user_code["Python user code"] ---> PyPartMC["pubind11-generated\nPyPartMC module"]
|
|
271
|
-
matlab_python --> PyPartMC
|
|
272
|
-
PyCall.jl --> PyPartMC
|
|
273
|
-
end
|
|
274
|
-
subgraph Cpp ["C++"]
|
|
275
|
-
cpp_user_code["C++ user code"] ----> ppmc_cpp
|
|
276
|
-
PyPartMC --> ppmc_cpp["PyPartMC-C++"]
|
|
277
|
-
ppmc_cpp --> pybind11_json
|
|
278
|
-
pybind11_json ---> nlohmann::JSON
|
|
279
|
-
spec_file_pypartmc_cpp --> nlohmann::JSON
|
|
280
|
-
end
|
|
281
|
-
subgraph C ["C"]
|
|
282
|
-
spec_file_pypartmc_c --> spec_file_pypartmc_cpp["SpecFile-C++"]
|
|
283
|
-
ppmc_cpp --> ppmc_c["PyPartMC-C"]
|
|
284
|
-
netCDF-C
|
|
285
|
-
SUNDIALS
|
|
286
|
-
camp_c["CAMP C code"]
|
|
287
|
-
end
|
|
288
|
-
subgraph Fortran ["Fortran"]
|
|
289
|
-
PartMC -....-> MOSAIC
|
|
290
|
-
ppmc_c --> ppmc_f["PyPartMC-F"]
|
|
291
|
-
ppmc_f ---> PartMC
|
|
292
|
-
PartMC --> netCDF-F
|
|
293
|
-
netCDF-F --> netCDF-C
|
|
294
|
-
PartMC --> SUNDIALS
|
|
295
|
-
PartMC ---> camp_f
|
|
296
|
-
camp_f["CAMP"] --> camp_c
|
|
297
|
-
PartMC ----> spec_file_pypartmc_f[SpecFile-F]
|
|
298
|
-
spec_file_pypartmc_f --> spec_file_pypartmc_c["SpecFile-C"]
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
style PartMC fill:#7ae7ff,stroke-width:2px,color:#2B2B2B
|
|
302
|
-
```
|
|
303
|
-
|
|
304
250
|
## FAQ
|
|
305
251
|
- Q: How to install PyPartMC with MOSAIC enabled?
|
|
306
252
|
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:
|
|
@@ -342,18 +288,6 @@ Could not find NC_M4 using the following names: m4, m4.exe
|
|
|
342
288
|
```
|
|
343
289
|
Try installing `m4` (e.g., using [MSYS2](https://packages.msys2.org/package/m4?repo=msys&variant=x86_64) on Windows).
|
|
344
290
|
|
|
345
|
-
## Notes for developers
|
|
346
|
-
#### How to debug
|
|
347
|
-
```sh
|
|
348
|
-
git clone --recursive git+https://github.com/open-atmos/PyPartMC.git
|
|
349
|
-
cd PyPartMC
|
|
350
|
-
DEBUG=1 VERBOSE=1 pip --verbose install -e .
|
|
351
|
-
gdb python
|
|
352
|
-
(gdb) run -m pytest -s -vv -We -p no:unraisableexception tests
|
|
353
|
-
```
|
|
354
|
-
#### Pre-commit hooks
|
|
355
|
-
PyPartMC codebase benefits from Pylint, Black and isort code analysis (which are all part of the CI workflows where we also use pre-commit hooks. The pre-commit hooks can be run locally, and then the resultant changes need to be staged before committing. To set up the hooks locally, install pre-commit via `pip install pre-commit` and set up the git hooks via `pre-commit install` (this needs to be done every time you clone the project). To run all pre-commit hooks, run `pre-commit run --all-files`. The `.pre-commit-config.yaml` file can be modified in case new hooks are to be added or existing ones need to be altered.
|
|
356
|
-
|
|
357
291
|
## Credits
|
|
358
292
|
|
|
359
293
|
#### PyPartMC:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
_PyPartMC.cp39-win_amd64.pyd,sha256=0YhzR9eU3VrNCt-tTeyMQHTsz0PuHnd9opBKMWhnMpw,9573376
|
|
2
|
+
PyPartMC/__init__.py,sha256=72fDfFXn4xRxfdLGOx8NCml41RxzBitBNZ-sUuvH-x0,2295
|
|
3
|
+
PyPartMC-1.3.1.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
|
4
|
+
PyPartMC-1.3.1.dist-info/METADATA,sha256=nUzqmoTZvf8PxWlDc5th8TZNW1GJU__wGxm-lRCh9Js,19315
|
|
5
|
+
PyPartMC-1.3.1.dist-info/WHEEL,sha256=Z6c-bE0pUM47a70GvqO_SvH_XXU0lm62gEAKtoNJ08A,100
|
|
6
|
+
PyPartMC-1.3.1.dist-info/top_level.txt,sha256=PJxy22pTnxcBhqrb6r4AIL32rkxA61gzw7ohlzybgSM,19
|
|
7
|
+
PyPartMC-1.3.1.dist-info/RECORD,,
|
_PyPartMC.cp39-win_amd64.pyd
CHANGED
|
Binary file
|
PyPartMC-1.2.1.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
_PyPartMC.cp39-win_amd64.pyd,sha256=wWWwLn3Rnnirbvkpxo1QBKz50Gzgjw0Ti2gKxCw8I1Y,9566208
|
|
2
|
-
PyPartMC/__init__.py,sha256=b9MDGMORBD_zX5HO6ZyZZKu75_3kNTtIaZDSATQCWNU,2257
|
|
3
|
-
PyPartMC-1.2.1.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
|
4
|
-
PyPartMC-1.2.1.dist-info/METADATA,sha256=P-2yEGe01x2ub0woEtlffI33TwHyeI96StGX5jw1aco,22470
|
|
5
|
-
PyPartMC-1.2.1.dist-info/WHEEL,sha256=Z6c-bE0pUM47a70GvqO_SvH_XXU0lm62gEAKtoNJ08A,100
|
|
6
|
-
PyPartMC-1.2.1.dist-info/top_level.txt,sha256=PJxy22pTnxcBhqrb6r4AIL32rkxA61gzw7ohlzybgSM,19
|
|
7
|
-
PyPartMC-1.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|