Skip to content

Commit 2832e98

Browse files
committed
Mypy doesn't believe you can call max on numpy arrays
1 parent 7163032 commit 2832e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/gp/cov.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(self, input_dim: int, active_dims: IntSequence | None = None):
170170
else:
171171
self.active_dims = np.asarray(active_dims, int)
172172

173-
if max(self.active_dims) > self.input_dim:
173+
if self.active_dims.max() > self.input_dim:
174174
raise ValueError("Values in `active_dims` can't be larger than `input_dim`.")
175175

176176
@property

0 commit comments

Comments
 (0)