You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/readme_listings.yml
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ jobs:
95
95
96
96
assert:
97
97
runs-on: ubuntu-latest
98
-
needs: [julia, python, matlab-draft, fortran]
98
+
needs: [julia, python, matlab, fortran]
99
99
steps:
100
100
- uses: actions/setup-python@v2
101
101
- run: pip install numpy
@@ -105,8 +105,8 @@ jobs:
105
105
path: readme_output
106
106
- run : python -c 'import numpy as np; import os; dir="readme_output/"; data=[float(np.loadtxt(dir+file)) for file in os.listdir(dir)]; print("data:", data); similar_as_first = np.array([abs(data[0]-k)/data[0] for k in data[1:]]); print("similar_as_first", similar_as_first); assert((similar_as_first < .5).all())'
107
107
108
-
matlab-draft:
109
-
runs-on: ubuntu-latest
108
+
matlab:
109
+
runs-on: ubuntu-20.04
110
110
111
111
steps:
112
112
- uses: actions/checkout@v2
@@ -130,10 +130,24 @@ jobs:
130
130
- run: python -c "import pytest_codeblocks; code=pytest_codeblocks.extract_from_file('README.md'); f=open('readme.m', 'w'); f.writelines(block.code for block in code if block.syntax=='Matlab'); f.close()"
131
131
- run: cat -n readme.m
132
132
133
+
# see https://github.com/pybind/cmake_example/pull/164
Copy file name to clipboardExpand all lines: README.md
+56-7Lines changed: 56 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
PyPartMC is a Python interface to [PartMC](https://lagrange.mechse.illinois.edu/partmc/),
6
6
a particle-resolved Monte-Carlo code for atmospheric aerosol simulation.
7
7
PyPartMC is implemented in C++ and it also constitutes a C++ API to the PartMC Fortran internals.
8
-
The Python API can facilitate using PartMC from other environments - see, e.g., Julia example below.
8
+
The Python API can facilitate using PartMC from other environments - see, e.g., Julia and Matlab examples below.
9
9
10
10
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
11
11
For a list of talks and other relevant resources, please see [project Wiki](https://github.com/open-atmos/PyPartMC/wiki/).
@@ -52,7 +52,7 @@ import PyPartMC
52
52
- ships with [a set of examples](https://github.com/open-atmos/PyPartMC/tree/main/examples) maintained in a form of Jupyter notebooks
53
53
- Pythonic API (but retaining PartMC jargon) incl. Python GC deallocation of Fortran objects
54
54
- specification of parameters using native Python datatypes (lists, dicts) in place of PartMC spec files
55
-
- code snippets in README depicting how to use PyPartMC from Julia (also executed on CI)
55
+
- code snippets in README depicting how to use PyPartMC from Julia and Matlab (also executed on CI)
56
56
- auto-generated [API docs on the web](https://open-atmos.github.io/PyPartMC/)
57
57
- support for [de]serialization of selected wrapped structures using JSON
58
58
- based on [unmodified PartMC code](https://github.com/open-atmos/PyPartMC/tree/main/gitmodules)
@@ -62,9 +62,9 @@ import PyPartMC
62
62
## Usage examples
63
63
64
64
The listings below depict how the identical task of randomly sampling particles from an aerosol size distribution in PartMC can be
65
-
done in three different programming languages.
65
+
done in different programming languages.
66
66
67
-
For a Fortran equivalent of the Pythonand Julia programs below, see the [`readme_fortran` folder](https://github.com/open-atmos/PyPartMC/tree/main/readme_fortran).
67
+
For a Fortran equivalent of the Python, Julia and Matlab programs below, see the [`readme_fortran` folder](https://github.com/open-atmos/PyPartMC/tree/main/readme_fortran).
0 commit comments