PySDM 2.89__py3-none-any.whl → 2.91__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,6 +1,5 @@
1
1
  """
2
- reports on the maximum Courant field value for each cell (maximum of
3
- absolute values of Courant number on all edges of a cell)
2
+ reports on the flow velocity
4
3
  """
5
4
 
6
5
  import numpy as np
@@ -27,20 +27,21 @@ class _SizeStandardDeviation(MomentProduct, ActivationFilteredProduct):
27
27
  ActivationFilteredProduct.__init__(
28
28
  self, count_activated=count_activated, count_unactivated=count_unactivated
29
29
  )
30
+ self.tmp = None
30
31
 
31
32
  def register(self, builder):
32
33
  builder.request_attribute(self.attr)
33
34
  for base_class in (ActivationFilteredProduct, MomentProduct):
34
35
  base_class.register(self, builder)
36
+ self.tmp = np.empty_like(self.buffer)
35
37
 
36
38
  def _impl(self, **kwargs):
37
39
  ActivationFilteredProduct.impl(self, attr=self.attr, rank=1)
38
- tmp = np.empty_like(self.buffer)
39
- tmp[:] = -self.buffer**2
40
+ self.tmp[:] = -self.buffer**2
40
41
  ActivationFilteredProduct.impl(self, attr=self.attr, rank=2)
41
- tmp[:] += self.buffer
42
- tmp[:] = np.sqrt(tmp)
43
- return tmp
42
+ self.tmp[:] += self.buffer
43
+ self.tmp[:] = np.sqrt(self.tmp)
44
+ return self.tmp
44
45
 
45
46
 
46
47
  RadiusStandardDeviation = register_product()(_SizeStandardDeviation)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySDM
3
- Version: 2.89
3
+ Version: 2.91
4
4
  Summary: Pythonic particle-based (super-droplet) warm-rain/aqueous-chemistry cloud microphysics package with box, parcel & 1D/2D prescribed-flow examples in Python, Julia and Matlab
5
5
  Home-page: https://github.com/open-atmos/PySDM
6
6
  Author: https://github.com/open-atmos/PySDM/graphs/contributors
@@ -38,7 +38,7 @@ Requires-Dist: pyrcel ; extra == 'tests'
38
38
  Requires-Dist: jupyter-core <5.0.0 ; extra == 'tests'
39
39
  Requires-Dist: ipywidgets !=8.0.3 ; extra == 'tests'
40
40
 
41
- # <img src="https://raw.githubusercontent.com/open-atmos/PySDM/main/.github/pysdm_logo.png" width=100 height=146 alt="pysdm logo">
41
+ # <img src="https://raw.githubusercontent.com/open-atmos/PySDM/main/docs/logos/pysdm_logo.png" width=100 height=146 alt="pysdm logo">
42
42
 
43
43
  [![Python 3](https://img.shields.io/static/v1?label=Python&logo=Python&color=3776AB&message=3)](https://www.python.org/)
44
44
  [![LLVM](https://img.shields.io/static/v1?label=LLVM&logo=LLVM&color=gold&message=Numba)](https://numba.pydata.org)
@@ -57,7 +57,7 @@ Requires-Dist: ipywidgets !=8.0.3 ; extra == 'tests'
57
57
 
58
58
  [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
59
59
 
60
- [![Github Actions Build Status](https://github.com/open-atmos/PySDM/workflows/tests+artifacts+pypi/badge.svg?branch=main)](https://github.com/open-atmos/PySDM/actions)
60
+ [![Github Actions Build Status](https://github.com/open-atmos/PySDM/workflows/tests/badge.svg?branch=main)](https://github.com/open-atmos/PySDM/actions)
61
61
  [![Appveyor Build status](http://ci.appveyor.com/api/projects/status/github/open-atmos/PySDM?branch=main&svg=true)](https://ci.appveyor.com/project/slayoo/pysdm/branch/main)
62
62
  [![Coverage Status](https://codecov.io/gh/open-atmos/PySDM/branch/main/graph/badge.svg)](https://app.codecov.io/gh/open-atmos/PySDM)
63
63
  [![PyPI version](https://badge.fury.io/py/PySDM.svg)](https://pypi.org/project/PySDM)
@@ -75,6 +75,8 @@ The package features a Pythonic high-performance implementation of the
75
75
  Super-Droplet Method (SDM) Monte-Carlo algorithm for representing collisional growth
76
76
  ([Shima et al. 2009](https://rmets.onlinelibrary.wiley.com/doi/abs/10.1002/qj.441)), hence the name.
77
77
 
78
+ PySDM documentation is maintained at: [https://open-atmos.github.io/PySDM](https://open-atmos.github.io/PySDM)
79
+
78
80
  There is a growing set of [example Jupyter notebooks](https://open-atmos.github.io/PySDM/PySDM_examples.html) exemplifying how to perform
79
81
  various types of calculations and simulations using PySDM.
80
82
  Most of the example notebooks reproduce results and plot from literature, see below for
@@ -105,14 +107,6 @@ For an overview of PySDM features (and the preferred way to cite PySDM in papers
105
107
  PySDM includes an extension of the SDM scheme to represent collisional breakup described in [de Jong, Mackay et al. 2023](10.5194/gmd-16-4193-2023).
106
108
  For a list of talks and other materials on PySDM as well as a list of published papers featuring PySDM simulations, see the [project wiki](https://github.com/open-atmos/PySDM/wiki).
107
109
 
108
- A [pdoc-generated](https://pdoc.dev/) documentation of PySDM public API is maintained at: [https://open-atmos.github.io/PySDM](https://open-atmos.github.io/PySDM)
109
-
110
- ## Example Jupyter notebooks (reproducing results from literature):
111
-
112
- See [PySDM-examples README](https://github.com/open-atmos/PySDM/blob/main/examples/README.md).
113
-
114
- ![animation](https://github.com/open-atmos/PySDM/wiki/files/kinematic_2D_example.gif)
115
-
116
110
  ## Dependencies and Installation
117
111
 
118
112
  PySDM dependencies are: [Numpy](https://numpy.org/), [Numba](http://numba.pydata.org/), [SciPy](https://scipy.org/),
@@ -337,7 +337,7 @@ PySDM/products/condensation/event_rates.py,sha256=S1UBKJbEKiFUHgdsgeIefoiUBKjpKg
337
337
  PySDM/products/condensation/peak_supersaturation.py,sha256=XOtNNBZ2LAxkA-UJrMLZiIllCMsZGoXtbvJf6Ccrq2I,1304
338
338
  PySDM/products/displacement/__init__.py,sha256=dHAXQ2b7jmQVMYdWkIuGjGz56EU0UyJMRDyKV0meo1w,315
339
339
  PySDM/products/displacement/averaged_terminal_velocity.py,sha256=9-s2iOx0Bp7-Sj5ZJvTsdrIXIg-h8IjucPjNLYsXocM,1195
340
- PySDM/products/displacement/flow_velocity_component.py,sha256=nocOu_tSWQUsFyojZpn54sfW5Jzjx7byeu9ywISsGpc,1413
340
+ PySDM/products/displacement/flow_velocity_component.py,sha256=OVi3i5Pv-IfIL6pgiwCZWf_Q2XELyJ7laaOvC6Bc-SE,1315
341
341
  PySDM/products/displacement/max_courant_number.py,sha256=cuEeOx9HufKXtl0bt-EPm5m7b9ubZHO-658ZLi7pBYY,985
342
342
  PySDM/products/displacement/surface_precipitation.py,sha256=0j4MlB10YHc11EwWBo3a2aDCbTHt-Twyo4NE5WEYRCU,1464
343
343
  PySDM/products/freezing/__init__.py,sha256=SGu0QdNVvnTkVCfO9m_se-7yf-gNrESYIoQLOWqr0MU,503
@@ -380,12 +380,12 @@ PySDM/products/size_spectral/particle_concentration_activated.py,sha256=sNPLQjlf
380
380
  PySDM/products/size_spectral/particle_size_spectrum.py,sha256=kS4aJbcTABhwKZYGLTciEp_rCe8bYuhEacKkJNTEqVI,3216
381
381
  PySDM/products/size_spectral/particle_volume_versus_radius_logarithm_spectrum.py,sha256=J_9hb1upUBU-DST1fusACvLDKKETEOnGxHj6RhsKvP8,1725
382
382
  PySDM/products/size_spectral/radius_binned_number_averaged_terminal_velocity.py,sha256=grlhq-G9WFh2MFkW1ZXiMlQ-YdjoiBT3x55U2zCE9Xc,1372
383
- PySDM/products/size_spectral/size_standard_deviation.py,sha256=A7fSj_keQi_bHW41PHghPkBV5BMRmJhCNA2i03dSLK0,2119
383
+ PySDM/products/size_spectral/size_standard_deviation.py,sha256=3ee3Wk4XYchMSwH-mFz_lfjajPp2__t9vPPJ-OCD6uo,2173
384
384
  PySDM/products/size_spectral/total_particle_concentration.py,sha256=K7sO2jgUpYOwWvBK3jXp9KUxLRXk_Ve6ooOdY5q5jd0,470
385
385
  PySDM/products/size_spectral/total_particle_specific_concentration.py,sha256=isLZt5j2vJGr-FrzYFcUNPHZqMKhOtl51za1Hogh6hQ,476
386
386
  PySDM/products/size_spectral/water_mixing_ratio.py,sha256=PP54hfMy4SPDQDJgV4RNzVP03lmL1THZPa2KXrdgoQ4,1324
387
- PySDM-2.89.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
388
- PySDM-2.89.dist-info/METADATA,sha256=XDIIGT5a6mRyN3LAet0tIObkHXIXjhKsqpg3qvfKc4g,17326
389
- PySDM-2.89.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
390
- PySDM-2.89.dist-info/top_level.txt,sha256=6NYaDAhUnaYMD7ebD_dQ7HlhiJS7NMuKEXb0ck7Wcsg,6
391
- PySDM-2.89.dist-info/RECORD,,
387
+ PySDM-2.91.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
388
+ PySDM-2.91.dist-info/METADATA,sha256=xRoF15zWkNRMQHbK7p7W6b-8KeVOLVJNhhosqTidvwo,17010
389
+ PySDM-2.91.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
390
+ PySDM-2.91.dist-info/top_level.txt,sha256=6NYaDAhUnaYMD7ebD_dQ7HlhiJS7NMuKEXb0ck7Wcsg,6
391
+ PySDM-2.91.dist-info/RECORD,,
File without changes
File without changes