Skip to content

Commit 2563140

Browse files
committed
Set pytorch<2.2.0 in environment.yml to be consistent with setup.pu and pyproject.toml
1 parent 83a1457 commit 2563140

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
- Cython
1818
- sympy
1919
- networkx
20-
- pytorch
20+
- pytorch<=2.2.0
2121
- numba
2222
# make html in docs folder
2323
- sphinx

pyapprox/analysis/active_subspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def sort_2d_vertices_by_polar_angle(vertices):
436436
# sort by polar angle
437437
sorted_vertices = np.array(
438438
sorted(vertices.T,
439-
key=lambda p: np.atan2(p[1]-cent[1], p[0]-cent[0]))).T
439+
key=lambda p: np.arctan2(p[1]-cent[1], p[0]-cent[0]))).T
440440
return sorted_vertices
441441

442442

pyapprox/pde/kle/_kle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def _compute_basis(self):
300300
# is that we cannot use autograd on quantities used to consturct K.
301301
# but the need for this is unlikely
302302
eig_vals, eig_vecs = eigh(
303-
self._la_to_numpy(K), turbo=False,
303+
self._la_to_numpy(K), # turbo=False,
304304
subset_by_index=(K.shape[0]-self._nterms, K.shape[0]-1))
305305
eig_vals = self._la_atleast1d(eig_vals)
306306
eig_vecs = self._la_atleast2d(eig_vecs)

0 commit comments

Comments
 (0)