PySDM-examples 2.54__py3-none-any.whl → 2.59__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.
@@ -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:
@@ -168,6 +168,7 @@ class Simulation:
168
168
  PySDM_products.CoalescenceRatePerGridbox(
169
169
  name="coalescence_rate",
170
170
  ),
171
+ PySDM_products.SurfacePrecipitation(),
171
172
  ]
172
173
  )
173
174
  self.particulator = self.builder.build(
@@ -182,7 +183,9 @@ class Simulation:
182
183
  }
183
184
  self.output_products = {}
184
185
  for k, v in self.particulator.products.items():
185
- if len(v.shape) == 1:
186
+ if len(v.shape) == 0:
187
+ self.output_products[k] = np.zeros(self.nt + 1)
188
+ elif len(v.shape) == 1:
186
189
  self.output_products[k] = np.zeros((self.mesh.grid[-1], self.nt + 1))
187
190
  elif len(v.shape) == 2:
188
191
  number_of_time_sections = len(self.save_spec_and_attr_times)
@@ -203,7 +206,10 @@ class Simulation:
203
206
  for k, v in self.particulator.products.items():
204
207
  if len(v.shape) > 1:
205
208
  continue
206
- self.output_products[k][:, step] = v.get()
209
+ if len(v.shape) == 1:
210
+ self.output_products[k][:, step] = v.get()
211
+ else:
212
+ self.output_products[k][step] = v.get()
207
213
 
208
214
  def save_spectrum(self, index):
209
215
  for k, v in self.particulator.products.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySDM-examples
3
- Version: 2.54
3
+ Version: 2.59
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
@@ -20,7 +20,6 @@ Requires-Dist: joblib
20
20
  Requires-Dist: ipywidgets
21
21
  Requires-Dist: seaborn
22
22
  Requires-Dist: numdifftools
23
- Requires-Dist: pyvinecopulib
24
23
  Requires-Dist: vtk
25
24
  Provides-Extra: tests
26
25
  Requires-Dist: pytest ; extra == 'tests'
@@ -63,7 +63,7 @@ PySDM_examples/Lowe_et_al_2019/__init__.py,sha256=JpFMpZWcBOXcQnYSXNoe4cc0giQJwJ
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
68
  PySDM_examples/Lowe_et_al_2019/simulation.py,sha256=O9PEvDc1vbrH5lcNO4LZ0nGjm-mYaP7YRCqSojxaUqY,5728
69
69
  PySDM_examples/Merlivat_and_Nief_1967/__init__.py,sha256=bbjcqXvQxmMwZIRTAOGWwFGkKGnQeGsi7x9kI-VdQpQ,127
@@ -96,7 +96,7 @@ PySDM_examples/Shipway_and_Hill_2012/__init__.py,sha256=fVgTFoG-sHDYawCJhZdUrqqz
96
96
  PySDM_examples/Shipway_and_Hill_2012/mpdata_1d.py,sha256=GfbGXQFAVJ2rYnkhwKKESRLPDfJJeL0Qs1h1pZUjlWo,1907
97
97
  PySDM_examples/Shipway_and_Hill_2012/plot.py,sha256=Q6lnGWE3oSDKV_F1qKUIihhbYABQ3S1A1qg7Q2rXwn4,3606
98
98
  PySDM_examples/Shipway_and_Hill_2012/settings.py,sha256=t6qypOnYniOJtkvlyeET8mY4zmF32qz0zs7ssdfoTOY,6458
99
- PySDM_examples/Shipway_and_Hill_2012/simulation.py,sha256=D9wezAP2HFKUk9A_LgqmkR-TME2tK_bKoaFgpQgcTSo,10004
99
+ PySDM_examples/Shipway_and_Hill_2012/simulation.py,sha256=ixOWbDLpmOKrwGw4Pmpqo2ghB8gK41oSMi-d0QA_gNY,10275
100
100
  PySDM_examples/Singer_Ward/__init__.py,sha256=wLus4IEzXkeOKCR3Dn2tM9PqNW9X7tjBiMymLvBow-c,31
101
101
  PySDM_examples/Singer_Ward/aerosol.py,sha256=H7TcvI94Wc-IvhTMFshFaJRJY3eUjihAlSdNxVKZzL0,5805
102
102
  PySDM_examples/Srivastava_1982/__init__.py,sha256=u7RxFGW08DIfwKU2yHpEQiiNlfz7F3GyYR4TV9LA7Ww,509
@@ -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.54.dist-info/METADATA,sha256=3kwJZx9K_3zrDHrXcavaPfRUmHnDZYMOBHnuVPgmYHM,38400
145
- PySDM_examples-2.54.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
146
- PySDM_examples-2.54.dist-info/top_level.txt,sha256=axw2inuuYKPWkQhzBYtkZJTPDlo5LrpGLOA0iSAf9v0,15
147
- PySDM_examples-2.54.dist-info/RECORD,,
144
+ PySDM_examples-2.59.dist-info/METADATA,sha256=gJZBNILOdM6AR2RPwCmZkhBG4awp1uw0cOIOnMe9z_4,38371
145
+ PySDM_examples-2.59.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
146
+ PySDM_examples-2.59.dist-info/top_level.txt,sha256=axw2inuuYKPWkQhzBYtkZJTPDlo5LrpGLOA0iSAf9v0,15
147
+ PySDM_examples-2.59.dist-info/RECORD,,