PySDM-examples 2.80__py3-none-any.whl → 2.82__py3-none-any.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.
- PySDM_examples/Kreidenweis_et_al_2003/simulation.py +1 -1
- PySDM_examples/Srivastava_1982/simulation.py +1 -1
- PySDM_examples/deJong_Azimi/simulation_0D.py +3 -3
- PySDM_examples/deJong_Mackay_et_al_2023/simulation_0D.py +9 -9
- PySDM_examples/seeding/simulation.py +4 -1
- {PySDM_examples-2.80.dist-info → PySDM_examples-2.82.dist-info}/METADATA +3 -6
- {PySDM_examples-2.80.dist-info → PySDM_examples-2.82.dist-info}/RECORD +9 -9
- {PySDM_examples-2.80.dist-info → PySDM_examples-2.82.dist-info}/WHEEL +1 -1
- {PySDM_examples-2.80.dist-info → PySDM_examples-2.82.dist-info}/top_level.txt +0 -0
|
@@ -48,9 +48,9 @@ def run_box(settings, backend_class=CPU):
|
|
|
48
48
|
for i, step in enumerate(settings.steps):
|
|
49
49
|
particulator.run(step - particulator.n_steps)
|
|
50
50
|
y[i] = particulator.products["dv/dlnr"].get()[0]
|
|
51
|
-
mom[i, 0] = particulator.products["M0"].get()
|
|
52
|
-
mom[i, 1] = particulator.products["M1"].get()
|
|
53
|
-
mom[i, 2] = particulator.products["M2"].get()
|
|
51
|
+
(mom[i, 0],) = particulator.products["M0"].get()
|
|
52
|
+
(mom[i, 1],) = particulator.products["M1"].get()
|
|
53
|
+
(mom[i, 2],) = particulator.products["M2"].get()
|
|
54
54
|
|
|
55
55
|
return namedtuple("_", ("radius_bins_left_edges", "dv_dlnr", "moments"))(
|
|
56
56
|
radius_bins_left_edges=settings.radius_bins_edges[:-1], dv_dlnr=y, moments=mom
|
|
@@ -79,11 +79,11 @@ def run_box_breakup(
|
|
|
79
79
|
core.run(step - core.n_steps)
|
|
80
80
|
y[i] = core.products["dv/dlnr"].get()[0]
|
|
81
81
|
if return_nv:
|
|
82
|
-
y2[i] = core.products["N(v)"].get()
|
|
83
|
-
rates[i, 0] = core.products["cr"].get()
|
|
84
|
-
rates[i, 1] = core.products["crd"].get()
|
|
85
|
-
rates[i, 2] = core.products["cor"].get()
|
|
86
|
-
rates[i, 3] = core.products["br"].get()
|
|
82
|
+
(y2[i],) = core.products["N(v)"].get()
|
|
83
|
+
(rates[i, 0],) = core.products["cr"].get()
|
|
84
|
+
(rates[i, 1],) = core.products["crd"].get()
|
|
85
|
+
(rates[i, 2],) = core.products["cor"].get()
|
|
86
|
+
(rates[i, 3],) = core.products["br"].get()
|
|
87
87
|
|
|
88
88
|
x = (settings.radius_bins_edges[:-1] / si.micrometres,)[0]
|
|
89
89
|
|
|
@@ -124,10 +124,10 @@ def run_box_NObreakup(settings, steps=None, backend_class=CPU):
|
|
|
124
124
|
# run
|
|
125
125
|
for i, step in enumerate(steps):
|
|
126
126
|
core.run(step - core.n_steps)
|
|
127
|
-
y[i] = core.products["dv/dlnr"].get()
|
|
128
|
-
rates[i, 0] = core.products["cr"].get()
|
|
129
|
-
rates[i, 1] = core.products["crd"].get()
|
|
130
|
-
rates[i, 2] = core.products["cor"].get()
|
|
127
|
+
(y[i],) = core.products["dv/dlnr"].get()
|
|
128
|
+
(rates[i, 0],) = core.products["cr"].get()
|
|
129
|
+
(rates[i, 1],) = core.products["crd"].get()
|
|
130
|
+
(rates[i, 2],) = core.products["cor"].get()
|
|
131
131
|
|
|
132
132
|
x = (settings.radius_bins_edges[:-1] / si.micrometres,)[0]
|
|
133
133
|
|
|
@@ -90,7 +90,10 @@ class Simulation:
|
|
|
90
90
|
data[data == 0] = np.nan
|
|
91
91
|
attr.append(data)
|
|
92
92
|
for key, prod in output["products"].items():
|
|
93
|
-
|
|
93
|
+
value = self.particulator.products[key].get()
|
|
94
|
+
if not isinstance(value, float):
|
|
95
|
+
(value,) = value
|
|
96
|
+
prod.append(float(value))
|
|
94
97
|
for out in ("attributes", "products"):
|
|
95
98
|
for key, val in output[out].items():
|
|
96
99
|
output[out][key] = np.array(val)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySDM-examples
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.82
|
|
4
4
|
Summary: PySDM usage examples reproducing results from literature and depicting how to use PySDM from Python Jupyter notebooks
|
|
5
5
|
Home-page: https://github.com/open-atmos/PySDM
|
|
6
6
|
Author: https://github.com/open-atmos/PySDM/graphs/contributors
|
|
@@ -9,7 +9,6 @@ License: GPL-3.0
|
|
|
9
9
|
Project-URL: Tracker, https://github.com/open-atmos/PySDM/issues
|
|
10
10
|
Project-URL: Documentation, https://open-atmos.github.io/PySDM/PySDM_examples
|
|
11
11
|
Project-URL: Source, https://github.com/open-atmos/PySDM/tree/main/examples
|
|
12
|
-
Platform: UNKNOWN
|
|
13
12
|
Description-Content-Type: text/markdown
|
|
14
13
|
Requires-Dist: PySDM
|
|
15
14
|
Requires-Dist: PyMPDATA
|
|
@@ -22,8 +21,8 @@ Requires-Dist: seaborn
|
|
|
22
21
|
Requires-Dist: numdifftools
|
|
23
22
|
Requires-Dist: vtk
|
|
24
23
|
Provides-Extra: tests
|
|
25
|
-
Requires-Dist: pytest; extra ==
|
|
26
|
-
Requires-Dist: nbconvert; extra ==
|
|
24
|
+
Requires-Dist: pytest ; extra == 'tests'
|
|
25
|
+
Requires-Dist: nbconvert ; extra == 'tests'
|
|
27
26
|
|
|
28
27
|
# Introduction
|
|
29
28
|
|
|
@@ -150,5 +149,3 @@ The box environment is also featured in the <a href="https://open-atmos.github.i
|
|
|
150
149
|
- <a href="https://open-atmos.github.io/PySDM/PySDM_examples/Miyake_et_al_1968.html">Miyake_et_al_1968</a>: incl. comparison of different <mark>ventilation</mark> parameterisations
|
|
151
150
|
- below-cloud <mark>kinetic fractionation</mark>:
|
|
152
151
|
- <a href="https://open-atmos.github.io/PySDM/PySDM_examples/Gedzelman_and_Arnold_1994.html">Gedzelman_and_Arnold_1994</a>
|
|
153
|
-
|
|
154
|
-
|
|
@@ -60,7 +60,7 @@ PySDM_examples/Jensen_and_Nugent_2017/simulation.py,sha256=fVeLHWxHq8yPPGBL9hikp
|
|
|
60
60
|
PySDM_examples/Jensen_and_Nugent_2017/table_3.py,sha256=HVhqXwNIqkUyl0k718qVaZaf0lnENWpE-sjqj5b08bc,952
|
|
61
61
|
PySDM_examples/Kreidenweis_et_al_2003/__init__.py,sha256=0xRsFFFsU05TVO8Ocm7XavOLw2khLUZ27ARbMvGvCpI,276
|
|
62
62
|
PySDM_examples/Kreidenweis_et_al_2003/settings.py,sha256=0uutxPWVJsHP4MVXZQarN6XdBpJjWhndLqvJa1Uzz0I,2825
|
|
63
|
-
PySDM_examples/Kreidenweis_et_al_2003/simulation.py,sha256=
|
|
63
|
+
PySDM_examples/Kreidenweis_et_al_2003/simulation.py,sha256=NiG1kM53buvNi-F8nGiR8voe-so-Eze-aQ97Lu8uo_Q,4756
|
|
64
64
|
PySDM_examples/Lamb_et_al_2017/__init__.py,sha256=XGHb_lVedu1EPxMxv8fxCBXAYcXZRJ-nnmyxgP-gob4,235
|
|
65
65
|
PySDM_examples/Lowe_et_al_2019/__init__.py,sha256=0xd2FSQLkx-TivSIys3g7xn12YlsEYdvpa69ufnZPYA,442
|
|
66
66
|
PySDM_examples/Lowe_et_al_2019/aerosol.py,sha256=8h0e1QAo4CQyyKokYScfuiWbKVJuLHfJir_r3_KAnNk,6827
|
|
@@ -107,7 +107,7 @@ PySDM_examples/Srivastava_1982/__init__.py,sha256=mD9KZ6Gecr2jpynNZxFuv-fD-4B79y
|
|
|
107
107
|
PySDM_examples/Srivastava_1982/equations.py,sha256=RQHvXbznreupzhOdfSQpc859DUNhThjPEKt7sXTeEAw,3262
|
|
108
108
|
PySDM_examples/Srivastava_1982/example.py,sha256=fGaLDvqz4BBLLG8NqHB2D2aAYFPOJhEg1r5DBPUntB8,8576
|
|
109
109
|
PySDM_examples/Srivastava_1982/settings.py,sha256=f5R-MyEKEw4Lbfix_4eyjiP9o_SqabM4IOH1fvQ3jjA,2275
|
|
110
|
-
PySDM_examples/Srivastava_1982/simulation.py,sha256=
|
|
110
|
+
PySDM_examples/Srivastava_1982/simulation.py,sha256=m24_z-awxSmkGxma8XJoFpqzXDWmvvKvkgpihKuF-VM,3039
|
|
111
111
|
PySDM_examples/Szumowski_et_al_1998/__init__.py,sha256=L9UucV9lyb08Hkzs1zYI9cxmN7mcogIFNsYgmnUpfY8,315
|
|
112
112
|
PySDM_examples/Szumowski_et_al_1998/fields.py,sha256=tcR2MAB7azOLF955-ACHJU6v7aJxxpDXVdSIMQTbHEg,1584
|
|
113
113
|
PySDM_examples/Szumowski_et_al_1998/gui.py,sha256=Vjt_ahdSl74NEjbZ-WxhK9eU3H2bqifjibPp6hy2DME,1309
|
|
@@ -128,17 +128,17 @@ PySDM_examples/deJong_Azimi/__init__.py,sha256=HEv69Ke02s732IjcQ5expjDT2uPCKpfaY
|
|
|
128
128
|
PySDM_examples/deJong_Azimi/cloudy_data.py,sha256=WrseLwj7uF0cESY7xRWqXbXzOu-WPJCNAPyrNMOqQHE,11258
|
|
129
129
|
PySDM_examples/deJong_Azimi/cloudy_data_0d.py,sha256=uadPxR4zMQFViIFjoqiGfAxTFLAVaUd9Xf6Coj-lXVg,12260
|
|
130
130
|
PySDM_examples/deJong_Azimi/settings1D.py,sha256=5pW1ljv0cRQTWL_RYcrwz7pPIyqXcCsmvzmzvK7iGWw,2231
|
|
131
|
-
PySDM_examples/deJong_Azimi/simulation_0D.py,sha256=
|
|
131
|
+
PySDM_examples/deJong_Azimi/simulation_0D.py,sha256=ZK7uAzitvfFF56K-jTF5gDbNOSJal-njyxF5tY4IICI,2009
|
|
132
132
|
PySDM_examples/deJong_Mackay_et_al_2023/__init__.py,sha256=KYAxBe868E8Zyh8yusJxmBR12NzUv4MEbAdBb6g9dZI,760
|
|
133
133
|
PySDM_examples/deJong_Mackay_et_al_2023/plot_rates.py,sha256=6BJ9V4uaJu-6nPfkLqwevDEIXvo_stRok8unhBPbCHY,2421
|
|
134
134
|
PySDM_examples/deJong_Mackay_et_al_2023/settings1D.py,sha256=2I0tK_GgWkQn2ZQjZdX4iUUPpOtL1dV8dOlEyaZ3rKQ,2951
|
|
135
135
|
PySDM_examples/deJong_Mackay_et_al_2023/settings_0D.py,sha256=ksclyxZ0sZNeLS-QZC7Dop6feEmQA1KBIZNuhvxcMxs,1918
|
|
136
136
|
PySDM_examples/deJong_Mackay_et_al_2023/simulation1D.py,sha256=xDA7I3EBoeAw_sHfp7MuBzoDrCbkF4wOKDR2BRePZxk,2430
|
|
137
|
-
PySDM_examples/deJong_Mackay_et_al_2023/simulation_0D.py,sha256=
|
|
137
|
+
PySDM_examples/deJong_Mackay_et_al_2023/simulation_0D.py,sha256=TRDny1dwoEXClkRm90yI94JVY44-9xj4UBFsRQAtA9Q,4607
|
|
138
138
|
PySDM_examples/deJong_Mackay_et_al_2023/simulation_ss.py,sha256=fYE5LRPbt5qIYC3NaXhC-qsq9GDETBxmXf2Ih3ezFyw,5864
|
|
139
139
|
PySDM_examples/seeding/__init__.py,sha256=RfACRu9O8zoWLR0HV6aUdikNlphpuAhY2QznMZUu72w,220
|
|
140
140
|
PySDM_examples/seeding/settings.py,sha256=_dD_0YrWsXkqWpTuSHXDTUE9xktSd9196h6bpsLDNC4,2217
|
|
141
|
-
PySDM_examples/seeding/simulation.py,sha256=
|
|
141
|
+
PySDM_examples/seeding/simulation.py,sha256=kx-kUj0yJMc6zizQsu_K_E4_0-UQqPv1XSkx6AyF9tc,4088
|
|
142
142
|
PySDM_examples/utils/__init__.py,sha256=MayUnfhdnjWwc5Ept-yYfCS_tuSR8yqe-RdBl8FO3Xk,258
|
|
143
143
|
PySDM_examples/utils/basic_simulation.py,sha256=4EdgD0p8EKNNcqYYVSlGm1MG2ac7_6heQdwS-kp-Tmw,698
|
|
144
144
|
PySDM_examples/utils/dummy_controller.py,sha256=f1AjVNXPnDhhD15GkBFtJthDf7jZivDrppj79guYc_w,741
|
|
@@ -148,7 +148,7 @@ PySDM_examples/utils/read_vtk_1d.py,sha256=7_3sagEbX_FxqFuGkFWdwQapd1-9echFghU8T
|
|
|
148
148
|
PySDM_examples/utils/widgets/__init__.py,sha256=U67WZ2YDcXSocMraI7pzcMxCfcxzXNqehDzoG6ogsh4,519
|
|
149
149
|
PySDM_examples/utils/widgets/freezer.py,sha256=tFlZWShXUzA2X0cxgeE44N1g9kD33q3KQWZBqkgBP0A,407
|
|
150
150
|
PySDM_examples/utils/widgets/progbar_updater.py,sha256=3uhG32QkAiSM3dTV7DoROJl7fAUNA6ZsJEIKSg3tdmk,267
|
|
151
|
-
PySDM_examples-2.
|
|
152
|
-
PySDM_examples-2.
|
|
153
|
-
PySDM_examples-2.
|
|
154
|
-
PySDM_examples-2.
|
|
151
|
+
PySDM_examples-2.82.dist-info/METADATA,sha256=MLL-xzEp-v2viPedzXftBTYtAdo_XrhNtCSxhLBmCd8,11979
|
|
152
|
+
PySDM_examples-2.82.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
153
|
+
PySDM_examples-2.82.dist-info/top_level.txt,sha256=axw2inuuYKPWkQhzBYtkZJTPDlo5LrpGLOA0iSAf9v0,15
|
|
154
|
+
PySDM_examples-2.82.dist-info/RECORD,,
|
|
File without changes
|