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

Fix Numpy DeprecationWarning: Conversion of an array with ndim > 0 to a scalar #272

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

mitchute
Copy link
Contributor

Addresses the following Numpy warning.

tests/pipes_test.py: 42 warnings
  /Users/mattmitchell/Projects/pygfunction/pygfunction/pipes.py:2268: 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.)
    self._Rd[self._iOuter, self._iOuter] = R_fg

@MassimoCimmino MassimoCimmino merged commit a0a82df into MassimoCimmino:master Apr 22, 2024
10 checks passed
@mitchute mitchute deleted the fix-numpy-warning branch April 22, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants