PySDM-examples 2.58__py3-none-any.whl → 2.60__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.
@@ -19,7 +19,14 @@ class Simulation:
19
19
  self.n_substeps += 1
20
20
 
21
21
  builder = Builder(
22
- backend=backend(formulae=settings.formulae),
22
+ backend=backend(
23
+ formulae=settings.formulae,
24
+ **(
25
+ {"override_jit_flags": {"parallel": False}}
26
+ if backend == CPU
27
+ else {}
28
+ )
29
+ ),
23
30
  n_sd=1,
24
31
  environment=Parcel(
25
32
  dt=dt_output / self.n_substeps,
@@ -5,7 +5,7 @@ from scipy.optimize import minimize
5
5
  from PySDM.backends import CPU
6
6
  from PySDM.physics import constants as const
7
7
 
8
- backend = CPU
8
+ backend = CPU()
9
9
  um = const.si.um
10
10
 
11
11
 
@@ -28,7 +28,7 @@ def print_collection_efficiency_portrait(params):
28
28
  pair[0] = r
29
29
  for i, _ in enumerate(x_values):
30
30
  pair[1] = x_values[i] * r
31
- backend.linear_collection_efficiency_body(
31
+ backend._linear_collection_efficiency_body(
32
32
  params=full_params(params),
33
33
  output=Y_c[i : i + 1],
34
34
  radii=pair,
@@ -71,7 +71,7 @@ def Y_c_portrait(
71
71
  pair[0] = radii[i]
72
72
  for j, __ in enumerate(p):
73
73
  pair[1] = p[j] * radii[i]
74
- backend.linear_collection_efficiency_body(
74
+ backend._linear_collection_efficiency_body(
75
75
  params=full_params(params),
76
76
  output=Y_c[i : i + 1, j],
77
77
  radii=pair,
@@ -48,7 +48,9 @@ class Simulation(BasicSimulation):
48
48
 
49
49
  builder = Builder(
50
50
  n_sd=N_SD_NON_GCCN + n_gccn,
51
- backend=CPU(formulae=settings.formulae),
51
+ backend=CPU(
52
+ formulae=settings.formulae, override_jit_flags={"parallel": False}
53
+ ),
52
54
  environment=env,
53
55
  )
54
56
 
@@ -22,7 +22,11 @@ class Simulation(BasicSimulation):
22
22
  )
23
23
 
24
24
  builder = Builder(
25
- n_sd=settings.n_sd, backend=CPU(formulae=settings.formulae), environment=env
25
+ n_sd=settings.n_sd,
26
+ backend=CPU(
27
+ formulae=settings.formulae, override_jit_flags={"parallel": False}
28
+ ),
29
+ environment=env,
26
30
  )
27
31
 
28
32
  attributes = env.init_attributes(
@@ -1,4 +1,3 @@
1
- import matplotlib
2
1
  import numpy as np
3
2
  from matplotlib import pyplot
4
3
  from open_atmos_jupyter_utils import show_plot
@@ -22,7 +21,7 @@ def plot_profiles(subplot_list, updraft_list, forg_list, output, save=False):
22
21
  CDNC_film = np.array(output[key + "CompressedFilmOvadnevaite"][var])
23
22
  CDNC_bulk = np.array(output[key + "Constant"][var])
24
23
 
25
- cmap = matplotlib.cm.get_cmap("Spectral")
24
+ cmap = pyplot.get_cmap("Spectral")
26
25
  if len(subplot_list) > 1:
27
26
  ax = axes[k, i]
28
27
  else:
@@ -22,7 +22,11 @@ class Simulation(BasicSimulation):
22
22
  )
23
23
  n_sd = settings.n_sd_per_mode * len(settings.aerosol.modes)
24
24
  builder = Builder(
25
- n_sd=n_sd, backend=CPU(formulae=settings.formulae), environment=env
25
+ n_sd=n_sd,
26
+ backend=CPU(
27
+ formulae=settings.formulae, override_jit_flags={"parallel": False}
28
+ ),
29
+ environment=env,
26
30
  )
27
31
 
28
32
  attributes = {
@@ -40,7 +40,11 @@ class Simulation:
40
40
  z0=settings.z0,
41
41
  )
42
42
  builder = Builder(
43
- backend=backend(formulae=self.formulae), n_sd=settings.n_sd, environment=env
43
+ backend=backend(
44
+ formulae=self.formulae, override_jit_flags={"parallel": False}
45
+ ),
46
+ n_sd=settings.n_sd,
47
+ environment=env,
44
48
  )
45
49
 
46
50
  environment = builder.particulator.environment
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySDM-examples
3
- Version: 2.58
3
+ Version: 2.60
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
@@ -12,7 +12,7 @@ PySDM_examples/Alpert_and_Knopf_2016/table_2.py,sha256=oxeB_UNLWzrSHKoWOot-kAe5X
12
12
  PySDM_examples/Arabas_and_Shima_2017/__init__.py,sha256=hR7OQjmlyxwzrO61gQsfJaatHYI8BJBdwGSmgBZn8HI,186
13
13
  PySDM_examples/Arabas_and_Shima_2017/example.py,sha256=dWzGbRCkdwjWethxtdEjn6IjEssFrmW37sEK8y36Q3I,253
14
14
  PySDM_examples/Arabas_and_Shima_2017/settings.py,sha256=RxPoFAZ7K9EL9B8dVwj41wngTnCVPaFu5tOgFm_K8gU,2383
15
- PySDM_examples/Arabas_and_Shima_2017/simulation.py,sha256=p8zb3-dC0er8d5o7CKSlaM9lAgIzFwO7LqovvuQUrdk,3965
15
+ PySDM_examples/Arabas_and_Shima_2017/simulation.py,sha256=mCrf-GQLL-so4cZs2w6hdjQnDvYiNnctLpgfDfoxFF8,4164
16
16
  PySDM_examples/Arabas_et_al_2015/__init__.py,sha256=uPSOIkvpr_UnLacbdQ5DYGW6k59JqvMVTKSuz6ff7bQ,244
17
17
  PySDM_examples/Arabas_et_al_2015/example.py,sha256=YB-ABtUByHQnv0jTGJvROhxNX_aQnM_PgoilG7mSEmQ,828
18
18
  PySDM_examples/Arabas_et_al_2015/example_benchmark.py,sha256=iUn5qGO0dB_s0DcYlOtllFURbRa6X9H9HW9AkaiHFoc,2343
@@ -32,7 +32,7 @@ PySDM_examples/Bartman_et_al_2021/__init__.py,sha256=G-GE8actgWv5-0x49DPJmAPR88e
32
32
  PySDM_examples/Bartman_et_al_2021/label.py,sha256=sHaZcODS8lrKxWha9Zd-VALHHqFTr_PsUrMPRunTxzA,523
33
33
  PySDM_examples/Berry_1967/__init__.py,sha256=WK67_TDhxgbKgiZWsdthnKvFcchvpJ8WuNcIP2b1cXY,185
34
34
  PySDM_examples/Berry_1967/example.py,sha256=r0WlZ0R4Y4RiDIsLlq3RG_R9YSvCSrizWGjg3mh0WgQ,2506
35
- PySDM_examples/Berry_1967/example_fig_6.py,sha256=wD11VB2Ocn-83jkLp55H5xquojdIw_-KdYtii5ZtkJY,3104
35
+ PySDM_examples/Berry_1967/example_fig_6.py,sha256=GlxzRg0GM2rCJDUPwIFVb47MkkkL2n3OH1RbZQFdE9Q,3108
36
36
  PySDM_examples/Berry_1967/settings.py,sha256=9VmVS4zBTGQff-xBdxb9AjUB9iNNm-qMznURH0ESfwE,1617
37
37
  PySDM_examples/Berry_1967/spectrum_plotter.py,sha256=WEEaryYBDydStKyx6H915LVTxeFFKj0pmpdVotktjI4,1023
38
38
  PySDM_examples/Bieli_et_al_2022/__init__.py,sha256=YdI2papu13HSfH973XxfrwGZkP_nbiXO4lgGHime_7M,141
@@ -53,19 +53,19 @@ PySDM_examples/Jaruga_and_Pawlowska_2018/__init__.py,sha256=VJz_xFOhVvnqYHKbAPRn
53
53
  PySDM_examples/Jensen_and_Nugent_2017/__init__.py,sha256=3iMpMdkdy_BEBBhjD9WR-2HbRHn7dop8kEk2uJJYe9U,66
54
54
  PySDM_examples/Jensen_and_Nugent_2017/plotting.py,sha256=J0lWibUFQq4aHTAPlql9DNj_JiMinlwZgRlsUs8y-I0,3607
55
55
  PySDM_examples/Jensen_and_Nugent_2017/settings.py,sha256=Dz7kZgEWACpl3mNMawfp1aAeIBbjrw1GAVFNni8plSM,2195
56
- PySDM_examples/Jensen_and_Nugent_2017/simulation.py,sha256=8paqkCVt5XtuVav5e2FM1s98aOw6NE-5oycu7aRHeLM,4722
56
+ PySDM_examples/Jensen_and_Nugent_2017/simulation.py,sha256=Zdo-xcJHa-y9kdwigRezYi58msduSc8991XDHz88syQ,4792
57
57
  PySDM_examples/Jensen_and_Nugent_2017/table_3.py,sha256=HVhqXwNIqkUyl0k718qVaZaf0lnENWpE-sjqj5b08bc,952
58
58
  PySDM_examples/Kreidenweis_et_al_2003/__init__.py,sha256=9QbrxhPe0QJxboGKeqHhq9rrvQ5VUcjTpqWgWsxnM1E,225
59
59
  PySDM_examples/Kreidenweis_et_al_2003/settings.py,sha256=iS7rZINn4EyxSsy_0CvQeGAz6ZyB-don1OCY7q_M21c,2836
60
- PySDM_examples/Kreidenweis_et_al_2003/simulation.py,sha256=UeU6SLhNAYNXVkw14PvPaM1efKmXYUzqkvpYI6L4ODs,4624
60
+ PySDM_examples/Kreidenweis_et_al_2003/simulation.py,sha256=yA022xXQgUEW9Rg1dmWQG4n9uUdGRsz5SpGzMCK2SCs,4719
61
61
  PySDM_examples/Lamb_et_al_2017/__init__.py,sha256=FfYms0faIM9l3GX4AkTjEqY6pjyKnJ7SlkKFlLLuHqY,184
62
62
  PySDM_examples/Lowe_et_al_2019/__init__.py,sha256=JpFMpZWcBOXcQnYSXNoe4cc0giQJwJAm27dOewsR3wE,236
63
63
  PySDM_examples/Lowe_et_al_2019/aerosol.py,sha256=8h0e1QAo4CQyyKokYScfuiWbKVJuLHfJir_r3_KAnNk,6827
64
64
  PySDM_examples/Lowe_et_al_2019/aerosol_code.py,sha256=HqjEfWwsdKFnrCvRNpyUrfX4JGJLdS53AbHTJ0NgyzQ,9667
65
65
  PySDM_examples/Lowe_et_al_2019/constants_def.py,sha256=dgNxLpBwXiyrefuW4t87uNIxIV3wySx5PXW3QqQZ7f0,480
66
- PySDM_examples/Lowe_et_al_2019/plot_helper.py,sha256=LBHXzYzUqyIB1qv69SmZo5k7RVUYbUmqN-qF3HXPBGU,6452
66
+ PySDM_examples/Lowe_et_al_2019/plot_helper.py,sha256=5h7zo0Aonm2pzUPFNNTqxLhShWcJZaNgG-Bwa9EwY9E,6427
67
67
  PySDM_examples/Lowe_et_al_2019/settings.py,sha256=qIhBIedOnm_AFRYDPH_Fzv3xvEIOUhJWPxkYDjaTaks,2620
68
- PySDM_examples/Lowe_et_al_2019/simulation.py,sha256=O9PEvDc1vbrH5lcNO4LZ0nGjm-mYaP7YRCqSojxaUqY,5728
68
+ PySDM_examples/Lowe_et_al_2019/simulation.py,sha256=8TashpmjOxGOpW3rPkDlCLMQHNL-LxIzRRJFpXc5Vtc,5823
69
69
  PySDM_examples/Merlivat_and_Nief_1967/__init__.py,sha256=bbjcqXvQxmMwZIRTAOGWwFGkKGnQeGsi7x9kI-VdQpQ,127
70
70
  PySDM_examples/Miyake_et_al_1968/__init__.py,sha256=Hdl2Ngex_AVg-wkvBaKwujLbfpH1jXM1-JJ1GceNui4,149
71
71
  PySDM_examples/Morrison_and_Grabowski_2007/__init__.py,sha256=sae2OEASd-sh-f0U_8ObIGitWGiXAPXrr7aTn950xoM,181
@@ -119,7 +119,7 @@ PySDM_examples/Szumowski_et_al_1998/storage.py,sha256=NaGoujCRLubSEbhLA0QZDaSkAT
119
119
  PySDM_examples/Van_Hook_1968/__init__.py,sha256=nTGyMcf6D4l6Ib0hMwyx4es1nX5dpuPbM9AYEleaIPE,119
120
120
  PySDM_examples/Yang_et_al_2018/__init__.py,sha256=zY7OnJ0d5eyWh3j0VvuHJMYOum9jY596-Ek2po0efmE,227
121
121
  PySDM_examples/Yang_et_al_2018/settings.py,sha256=snD3ehCPaWD2QBJosdCYKX4X-dHb0LnBiayhPkXUY3w,2327
122
- PySDM_examples/Yang_et_al_2018/simulation.py,sha256=N1XsZAMDfT7n9423Tt2PN2NDXVsOYjQIAZMMY2hWXNg,4173
122
+ PySDM_examples/Yang_et_al_2018/simulation.py,sha256=tqfqRcz-Y7Al1jPfrBBOP2S9PR5jVbAAeyWGNjSbIMA,4268
123
123
  PySDM_examples/deJong_Azimi/__init__.py,sha256=VSVGYB3ckDnW2WVTnrn0tebEIbsE3xYNL6_gdQh4XMs,264
124
124
  PySDM_examples/deJong_Azimi/cloudy_data.py,sha256=WrseLwj7uF0cESY7xRWqXbXzOu-WPJCNAPyrNMOqQHE,11258
125
125
  PySDM_examples/deJong_Azimi/cloudy_data_0d.py,sha256=uadPxR4zMQFViIFjoqiGfAxTFLAVaUd9Xf6Coj-lXVg,12260
@@ -141,7 +141,7 @@ PySDM_examples/utils/read_vtk_1d.py,sha256=7_3sagEbX_FxqFuGkFWdwQapd1-9echFghU8T
141
141
  PySDM_examples/utils/widgets/__init__.py,sha256=U67WZ2YDcXSocMraI7pzcMxCfcxzXNqehDzoG6ogsh4,519
142
142
  PySDM_examples/utils/widgets/freezer.py,sha256=tFlZWShXUzA2X0cxgeE44N1g9kD33q3KQWZBqkgBP0A,407
143
143
  PySDM_examples/utils/widgets/progbar_updater.py,sha256=3uhG32QkAiSM3dTV7DoROJl7fAUNA6ZsJEIKSg3tdmk,267
144
- PySDM_examples-2.58.dist-info/METADATA,sha256=MCuM4fxcgeXMjzMRbRaueSz9MWVo0kx3j6n9A4FHh7w,38371
145
- PySDM_examples-2.58.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
146
- PySDM_examples-2.58.dist-info/top_level.txt,sha256=axw2inuuYKPWkQhzBYtkZJTPDlo5LrpGLOA0iSAf9v0,15
147
- PySDM_examples-2.58.dist-info/RECORD,,
144
+ PySDM_examples-2.60.dist-info/METADATA,sha256=FBdLw8mjicfXWJSiFla4vpAnfuuVj6Ujae97M07Gyz4,38371
145
+ PySDM_examples-2.60.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
146
+ PySDM_examples-2.60.dist-info/top_level.txt,sha256=axw2inuuYKPWkQhzBYtkZJTPDlo5LrpGLOA0iSAf9v0,15
147
+ PySDM_examples-2.60.dist-info/RECORD,,