open-atmos / PySDM

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
https://open-atmos.github.io/PySDM/
GNU General Public License v3.0
52 stars 28 forks source link

formulae.__vectorize doesn't work and not tested #1254

Open claresinger opened 5 months ago

claresinger commented 5 months ago

requires work around like here

if model in ("CompressedFilmRuehl", "SzyszkowskiLangmuir"):
    for j,vw in enumerate(v_wet):
        sigma[j] = formulae.surface_tension.sigma(T, vw, v_dry, aerosol.modes[0]['f_org'])
else:
    sigma = formulae.surface_tension.sigma(T, v_wet, v_dry, aerosol.modes[0]['f_org'])

implemented here, but untested https://github.com/open-atmos/PySDM/blob/29e22e31e485b9f5d89d0a2a6b7ac33d02e1885a/PySDM/formulae.py#L167-L181

github-actions[bot] commented 2 months ago

Stale issue message