Skip to content

Commit

Permalink
[FIX] Update python in conda env, adapt doctest to numpy>=2
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Sep 18, 2024
1 parent b740fbc commit 3cd7b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- pytorch
- defaults
dependencies:
- pip=21.2.4
- python=3.8.5
- python=3.9.16
- pip=23.1.2
- pip:
- -e .[lint,test,docs]
2 changes: 1 addition & 1 deletion curvlinops/diagonal/hutchinson.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class HutchinsonDiagonalEstimator:
>>> error_high_precision = norm(diag_A - diag_A_high_precision)
>>> assert error_low_precision > error_high_precision
>>> round(error_low_precision, 4), round(error_high_precision, 4)
(5.7268, 0.1525)
(np.float64(5.7268), np.float64(0.1525))
"""

def __init__(self, A: LinearOperator):
Expand Down

0 comments on commit 3cd7b2a

Please sign in to comment.