Skip to content

Commit 3c4f404

Browse files
authored
Merge branch 'main' into dependabot/pip/examples/pillow-lt-12.1.0
2 parents 8816817 + d5320fe commit 3c4f404

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

.github/workflows/readme_snippets.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python:
1717
strategy:
1818
matrix:
19-
platform: [ubuntu-latest, macos-13, macos-14, windows-latest]
19+
platform: [ubuntu-latest, macos-15-intel, macos-14, windows-latest]
2020
runs-on: ${{ matrix.platform }}
2121
steps:
2222
- uses: actions/checkout@v4.1.6
@@ -25,7 +25,6 @@ jobs:
2525
python-version: "3.10"
2626
- run: python -m pip install $PIP_INSTALL_ARGS -e .
2727
- run: python -m pip install $PIP_INSTALL_ARGS pytest-codeblocks pytest
28-
- run: python -m pip install $PIP_INSTALL_ARGS "pyparsing<3.0.0" # https://github.com/matplotlib/matplotlib/issues/25204
2928
- run: python -m pip install $PIP_INSTALL_ARGS "pillow<11.3.0" # matplotlib triggers deprecation warnings in 11.3.0
3029
- run: |
3130
python -c "import os,pytest_codeblocks; code=pytest_codeblocks.extract_from_file('docs/markdown/pysdm_landing.md'); f=open('readme.py', 'w', encoding='utf-8'); f.write('# coding: utf-8'+os.linesep); f.writelines(block.code for block in code if block.syntax=='Python'); f.close()"

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
env-unit-tests-setup:
2626
strategy:
2727
matrix:
28-
platform: [ ubuntu-24.04, macos-13, macos-14, windows-latest ]
28+
platform: [ ubuntu-24.04, macos-15-intel, macos-14, windows-latest ]
2929
python-version: [ "3.9", "3.12" ]
3030
runs-on: ${{ matrix.platform }}
3131
steps:
@@ -90,7 +90,7 @@ jobs:
9090
needs: env-unit-tests-setup
9191
strategy:
9292
matrix:
93-
platform: [ ubuntu-24.04, macos-13, macos-14, windows-latest ]
93+
platform: [ ubuntu-24.04, macos-15-intel, macos-14, windows-latest ]
9494
python-version: [ "3.9", "3.12" ]
9595
runs-on: ${{ matrix.platform }}
9696
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For an overview of PySDM features (and the preferred way to cite PySDM in papers
6363
- [Bartman et al. 2022](https://doi.org/10.21105/joss.03219) (PySDM v1).
6464
- [de Jong, Singer et al. 2023](https://doi.org/10.21105/joss.04968) (PySDM v2).
6565

66-
PySDM includes an extension of the SDM scheme to represent collisional breakup described in [de Jong, Mackay et al. 2023](10.5194/gmd-16-4193-2023).
66+
PySDM includes an extension of the SDM scheme to represent collisional breakup described in [de Jong, Mackay et al. 2023](https://doi.org/10.5194/gmd-16-4193-2023).
6767
For a list of talks and other materials on PySDM as well as a list of published papers featuring PySDM simulations, see the [project wiki](https://github.com/open-atmos/PySDM/wiki).
6868

6969
## Dependencies and Installation

docs/bibliography.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370
},
371371
"https://doi.org/10.5194/gmd-16-4193-2023": {
372372
"usages": [
373+
"README.md",
373374
"examples/docs/pysdm_examples_landing.md",
374375
"examples/PySDM_examples/deJong_Mackay_et_al_2023/__init__.py"
375376
],

docs/markdown/pysdm_landing.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ It is a [`Coalescence`](https://open-atmos.github.io/PySDM/PySDM/dynamics/collis
9696

9797
```Julia
9898
Pkg.add("Plots")
99-
Pkg.add("PlotlyJS")
10099

101100
ConstantMultiplicity = pyimport("PySDM.initialisation.sampling.spectral_sampling").ConstantMultiplicity
102101
Exponential = pyimport("PySDM.initialisation.spectra").Exponential
@@ -229,7 +228,7 @@ In the listing below, its usage is interleaved with plotting logic
229228
<summary>Julia (click to expand)</summary>
230229

231230
```Julia
232-
using Plots; plotlyjs()
231+
using Plots; gr()
233232

234233
for step = 0:1200:3600
235234
particulator.run(step - particulator.n_steps)
@@ -381,7 +380,7 @@ and the
381380

382381
```Julia
383382
using PyCall
384-
using Plots; plotlyjs()
383+
using Plots; gr()
385384
si = pyimport("PySDM.physics").si
386385
spectral_sampling = pyimport("PySDM.initialisation.sampling").spectral_sampling
387386
discretise_multiplicities = pyimport("PySDM.initialisation").discretise_multiplicities

examples/PySDM_examples/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"""
44

55
from importlib.metadata import PackageNotFoundError, version
6+
import PySDM
67

78
try:
89
__version__ = version(__name__)
910
except PackageNotFoundError:
1011
# package is not installed
1112
pass
13+
14+
assert PySDM.__version__ == __version__

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
else ""
4141
),
4242
"pyevtk",
43+
"pyparsing" + ("==3.2.5" if CI else ""),
4344
]
4445

4546
optional_dependencies = {

tests/unit_tests/test_formulae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_trickier_formula_vectorised(formulae_init_args, temp, v_wet, v_dry, f_o
104104
v_dry if isinstance(v_dry, float) else v_dry[i],
105105
f_org if isinstance(f_org, float) else f_org[i],
106106
)
107-
np.testing.assert_array_equal(actual, expected)
107+
np.testing.assert_allclose(actual, expected, rtol=1e-15)
108108

109109
@staticmethod
110110
def test_flatten():

0 commit comments

Comments
 (0)