Skip to content

Commit 16c8a8b

Browse files
committed
fix: combine if statements
1 parent 7061ca2 commit 16c8a8b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_photon_array.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,10 @@ def test_photon_array():
194194
pa1.x = photon_array.x[:50]
195195
if is_jax_galsim():
196196
pa1.y = photon_array.y[:50]
197+
pa1.flux = photon_array.flux[:50]
197198
else:
198199
for i in range(50):
199200
pa1.y[i] = photon_array.y[i]
200-
if is_jax_galsim():
201-
pa1.flux = photon_array.flux[:50]
202-
else:
203201
pa1.flux[0:50] = photon_array.flux[:50]
204202
pa1.dxdz = photon_array.dxdz[:50]
205203
pa1.dydz = photon_array.dydz[:50]

0 commit comments

Comments
 (0)