Skip to content

Commit 7e9f15e

Browse files
authored
Merge pull request #800 from slayoo/smoke_test_ARG
minimal smoke test for ARG example
2 parents d41917c + d4a6ac4 commit 7e9f15e

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

test-time-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ ghapi
44
pytest
55

66
# note: if cloning both PySDM and PySDM examples, consider "pip install -e"
7-
PySDM-examples @ git+git://github.com/atmos-cloud-sim-uj/PySDM-examples@0c46ee4#egg=PySDM-examples
7+
PySDM-examples @ git+git://github.com/atmos-cloud-sim-uj/PySDM-examples@8294840#egg=PySDM-examples
88
PyMPDATA @ git+https://github.com/atmos-cloud-sim-uj/PyMPDATA@e7b73a7#egg=PyMPDATA

tests/smoke_tests/abdul_razzak_ghan_2000/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
2+
from PySDM_examples.Abdul_Razzak_Ghan_2000.run_ARG_parcel import run_parcel
3+
4+
from PySDM.physics import si
5+
6+
7+
def test_just_do_it():
8+
# act
9+
output = run_parcel(
10+
w=1 * si.m / si.s,
11+
sol2=0.5,
12+
N2=100 / si.cm ** 3,
13+
rad2=100 * si.nm,
14+
n_sd_per_mode=10,
15+
)
16+
17+
# assert
18+
assert (output.activated_fraction_S[:] <= 1).all()

0 commit comments

Comments
 (0)