We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f0613 commit b1329d7Copy full SHA for b1329d7
1 file changed
jax_galsim/wcs.py
@@ -29,7 +29,7 @@ def _cast_to_static_numeric_scalar(x, msg=None):
29
if x.ndim == 0:
30
return x.item()
31
32
- if all(sv for sv in x.shape == 1):
+ if all(sv == 1 for sv in x.shape):
33
return x.ravel()[0].item()
34
35
msg = msg or f"Cannot convert input {x!r} to a static, numeric scalar."
0 commit comments