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

numpy.asscalar() is deprecated #100

Closed
MassimoCimmino opened this issue May 17, 2021 · 0 comments · Fixed by #126
Closed

numpy.asscalar() is deprecated #100

MassimoCimmino opened this issue May 17, 2021 · 0 comments · Fixed by #126
Assignees

Comments

@MassimoCimmino
Copy link
Owner

This is used throughout pygfunction to return floats instead of arrays.

@MassimoCimmino MassimoCimmino self-assigned this Jul 7, 2021
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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant