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

Syntax update using numpy and scipy #196

Merged
merged 4 commits into from
Mar 18, 2024
Merged

Syntax update using numpy and scipy #196

merged 4 commits into from
Mar 18, 2024

Conversation

castelao
Copy link
Member

Minor editing that would stop some warnings about a future change in syntax.

I also added explicit dependency on numpy and scipy since those are explicitly called.

Replaced by np.prod()
The `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0
I just noticed that although numpy and scipy are used explicitly in
sup3r, there was no explicit dependency on those. The respective minimum
versions where defined based on the syntax update in the previous
commit.
@castelao castelao requested a review from bnb32 March 14, 2024 22:59
@castelao castelao self-assigned this Mar 14, 2024
Copy link
Collaborator

@bnb32 bnb32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. Not sure what's going on with those tests though.

Apparently tensorflow 2.16 made some big API changes. I added <2.16 to the requirements in my PR.

There is something going wrong with TF-2.16 (see PR #198).
@castelao castelao merged commit ecec6a8 into main Mar 18, 2024
6 checks passed
@castelao castelao deleted the np.prod branch March 18, 2024 14:00
github-actions bot pushed a commit that referenced this pull request Mar 18, 2024
* fix: np.product() is deprecated

Replaced by np.prod()

* fix: gaussian_filter() moving to scipy.ndimage

The `scipy.ndimage.filters` namespace is deprecated and will be removed in SciPy 2.0.0

* Explicit requirement on numpy and scipy

I just noticed that although numpy and scipy are used explicitly in
sup3r, there was no explicit dependency on those. The respective minimum
versions where defined based on the syntax update in the previous
commit.

* Holding TensorFlow to <2.16

There is something going wrong with TF-2.16 (see PR #198).
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.

None yet

2 participants