Skip to content

Commit 8e7280f

Browse files
committed
test: ensure we have proper logic here
1 parent f312d87 commit 8e7280f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/jax/test_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,8 @@ def _run_object_checks(obj, cls, kind):
128128
hash(obj)
129129

130130
# check that val jax array
131-
if (
132-
(hasattr(obj, "isStatic")
133-
and obj.isStatic())
134-
or isinstance(obj, jax_galsim.Sensor)
131+
if (hasattr(obj, "isStatic") and obj.isStatic()) or isinstance(
132+
obj, jax_galsim.Sensor
135133
):
136134
assert isinstance(eval(repr(obj)) == obj, bool)
137135
else:

0 commit comments

Comments
 (0)