Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Test TestUtils.test_generate_gaussian_mix_multiple throws deprecation warning. #23

Open
davidkowalk opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@davidkowalk
Copy link
Owner

Integrating over Gaussian Mix evaluates correctly but throws deprecation warning.

DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)

Steps to reproduce:

        gaussian_mix = generate_gaussian_mix(2)

        x = np.linspace(-5, 5, 100)
        params = (0, 1, 0.6, 2, 1)

        result = gaussian_mix(x, *params)

        p = quad(gaussian_mix, -np.inf, np.inf, args = params)[0]
@davidkowalk davidkowalk added bug Something isn't working help wanted Extra attention is needed labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant