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

Avoid deprecations #788

Merged
merged 5 commits into from
Feb 27, 2025

Conversation

dagewa
Copy link
Member

@dagewa dagewa commented Feb 17, 2025

Fix a couple of DeprecationWarnings raised during tests:

  • 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.)
  • DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC)

Partial fix for #784

@dagewa dagewa enabled auto-merge (squash) February 27, 2025 11:54
@dagewa dagewa merged commit b0c03cf into main Feb 27, 2025
16 checks passed
@dagewa dagewa deleted the Deprecated-numpy-implicit-single-elt-array-conversion branch February 27, 2025 12:28
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