We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 136eeaa commit 5e1e507Copy full SHA for 5e1e507
tests/python/unit/blk_1m_ice.py
@@ -2,6 +2,7 @@
2
sys.path.insert(0, "../../bindings/python/")
3
4
from numpy import array as arr_t # ndarray dtype default to float64, while array's is int64!
5
+import numpy as np
6
7
from libcloudphxx import blk_1m
8
@@ -52,8 +53,17 @@
52
53
print('iceA_flux='+str(flux_iceA))
54
print('iceB_flux='+str(flux_iceB))
55
56
+assert np.isnan(rv) == False
57
+assert np.isnan(rc) == False
58
+assert np.isnan(rr) == False
59
+assert np.isnan(ria) == False
60
+assert np.isnan(rib) == False
61
+
62
assert rv >= 0
63
assert rc >= 0
64
assert rr >= 0
65
assert ria >= 0
-assert rib >= 0
66
+assert rib >= 0
67
68
+assert np.isclose(ria, 2.7564e-05, rtol=1e-5, atol=1e-8)
69
+assert np.isclose(rib, 3.2808e-06, rtol=1e-5, atol=1e-8)
0 commit comments