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

Update unumpy test to be compatible with numpy 2 #225

Merged
merged 1 commit into from
May 16, 2024

Commits on May 16, 2024

  1. Update unumpy test to be compatible with numpy 2

    `uncertainties` defines error-propagating versions of several of the
    functions in the `math` module. Then in the `unumpy` code, it iterates
    over this same set and defines array-compatible versions of those
    functions using `numpy.vectorize`. Because before numpy 2 numpy used
    different names for the inverse trigonometric functions (`arccos` vs
    `acos`), the code needed to change the name for the numpy version. One
    place in the tests just checked that `arccos` was in the numpy module and
    `acos` was not. Since numpy 2 added the aliases for the `a`-named
    versions of the `arc` functions, that test fails with numpy 2. Since
    `uncertainties` does not really need to test the names of functions in
    `numpy` that check is removed.
    
    A future update could add the `acos()`-style aliases to `unumpy` as
    well.
    wshanks committed May 16, 2024
    Configuration menu
    Copy the full SHA
    321436b View commit details
    Browse the repository at this point in the history