Skip to content

non-deterministic CI error: invalid value encountered (in sqrt in condensation solver?)  #1753

@slayoo

Description

@slayoo
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/open_atmos_jupyter_utils/notebook_vars.py:30: in notebook_vars
    exec("\n".join(lines), context)  # pylint: disable=exec-used
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<string>:1: in <module>
    ???
examples/PySDM_examples/Jensen_and_Nugent_2017/simulation.py:118: in run
    output_products = super()._run(
examples/PySDM_examples/utils/basic_simulation.py:20: in _run
    self._save(output)
examples/PySDM_examples/Jensen_and_Nugent_2017/simulation.py:128: in _save
    super()._save(output)
examples/PySDM_examples/utils/basic_simulation.py:10: in _save
    value = v.get()
            ^^^^^^^
PySDM/products/impl/product.py:99: in get
    result = self._impl(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PySDM.products.size_spectral.size_standard_deviation._SizeStandardDeviation object at 0x37ab851f0>
kwargs = {}

    def _impl(self, **kwargs):
        ActivationFilteredProduct.impl(self, attr=self.attr, rank=1)
        self.tmp[:] = -self.buffer**2
        ActivationFilteredProduct.impl(self, attr=self.attr, rank=2)
        self.tmp[:] += self.buffer
>       self.tmp[:] = np.sqrt(self.tmp)
                      ^^^^^^^^^^^^^^^^^
E       RuntimeWarning: invalid value encountered in sqrt

PySDM/products/size_spectral/size_standard_deviation.py:43: RuntimeWarning
ERROR tests/smoke_tests/parcel_d/jensen_and_nugent_2017/test_fig_6.py::TestFig6::test_maximal_size_of_largest_droplet - RuntimeWarning: invalid value encountered in sqrt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions