-
Notifications
You must be signed in to change notification settings - Fork 21
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
numpy.asscalar() is deprecated #100
Comments
MassimoCimmino
added a commit
that referenced
this issue
Jul 7, 2021
This is for #93, #100, and #125. `pipes` and `networks` modules are reformatted. - `numpy.dot()` and `numpy.linalg.multidot()` are replaced by the use of the `@` operator introduced in [PEP465](https://www.python.org/dev/peps/pep-0465/). - `numpy.asscalar()` is replaced by `array.item()` as recommended in the `numpy` documentation as `asscalar` was deprecated in `v1.16`. - Docstrings in `Pipe` and `Network` objects are reformatted to better specify the expected types and array shapes of inputs and outputs to functions and class methods.
MassimoCimmino
added a commit
that referenced
this issue
Jul 14, 2021
This is for #93, #100, and #125. `pipes` and `networks` modules are reformatted. - `numpy.dot()` and `numpy.linalg.multidot()` are replaced by the use of the `@` operator introduced in [PEP465](https://www.python.org/dev/peps/pep-0465/). - `numpy.asscalar()` is replaced by `array.item()` as recommended in the `numpy` documentation as `asscalar` was deprecated in `v1.16`. - Docstrings in `Pipe` and `Network` objects are reformatted to better specify the expected types and array shapes of inputs and outputs to functions and class methods.
MassimoCimmino
added a commit
that referenced
this issue
Jul 14, 2021
This is for #93, #100, and #125. `pipes` and `networks` modules are reformatted. - `numpy.dot()` and `numpy.linalg.multidot()` are replaced by the use of the `@` operator introduced in [PEP465](https://www.python.org/dev/peps/pep-0465/). - `numpy.asscalar()` is replaced by `array.item()` as recommended in the `numpy` documentation as `asscalar` was deprecated in `v1.16`. - Docstrings in `Pipe` and `Network` objects are reformatted to better specify the expected types and array shapes of inputs and outputs to functions and class methods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is used throughout pygfunction to return floats instead of arrays.
The text was updated successfully, but these errors were encountered: