Commit 8c2edef1 authored by Philipp Arras's avatar Philipp Arras
Browse files

get_sqrt might also raise ValueError

e.g. when the diagonal of a diagonal operator is real and strictly positive.
parent b0946178
Pipeline #88286 passed with stages
in 11 minutes and 19 seconds
......@@ -210,7 +210,7 @@ def _check_sqrt(op, domain_dtype):
return
try:
sqop = op.get_sqrt()
except NotImplementedError:
except (NotImplementedError, ValueError):
return
fld = from_random(op.domain, dtype=domain_dtype)
a = op(fld)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment