Skip to content

Commit

Permalink
Update test/contrib/hsgp/test_approximation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Orduz <[email protected]>
  • Loading branch information
samanklesaria and juanitorduz authored Jun 25, 2024
1 parent 1d16f4e commit 6982850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/contrib/hsgp/test_approximation.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_kernel_approx_squared_exponential(
def _exact_rbf(length):
return RBF(length)(x1, x2).squeeze(axis=-1)

if isinstance(length, Union[float, int]):
if isinstance(length, int) | isinstance(length, float):
exact = _exact_rbf(length)
elif length.ndim == 1:
exact = _exact_rbf(length)
Expand Down

0 comments on commit 6982850

Please sign in to comment.