Skip to content

Commit acdbb20

Browse files
committed
Fixing some random numbers & previously passing tests
1 parent 6146dc4 commit acdbb20

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ license = {file = "LICENSE"}
1616
readme = "README.md"
1717
dependencies = [
1818
"numpy >=1.18.0",
19-
"galsim >=2.3.0",
19+
"galsim >=2.7.0",
2020
"jax >=0.8.0",
2121
"astropy >=2.0",
2222
"tfp-nightly",

tests/jax/test_interpolatedimage_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def test_interpolatedimage_interpolant_sample(interp):
335335
from jax_galsim.photon_array import PhotonArray
336336
from jax_galsim.random import BaseDeviate
337337

338-
rng = BaseDeviate(1234)
338+
rng = BaseDeviate(999)
339339

340340
ntot = 1000000
341341
photons = PhotonArray(ntot)

tests/jax/test_jitting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _build_and_draw(hlr, fwhm, jit=True, maxn=False):
257257
[gal, psf],
258258
)
259259
n = final.getGoodImageSize(0.2).item()
260-
n += 1
260+
n += 4
261261
n_photons = calculate_n_photons(
262262
final.flux,
263263
final._flux_per_photon,
@@ -351,7 +351,7 @@ def _build_and_draw(hlr, fwhm, jit=True, maxn=False):
351351
[gal, psf],
352352
)
353353
n = final.getGoodImageSize(0.2).item()
354-
n += 1
354+
n += 4
355355
n_photons = calculate_n_photons(
356356
final.flux,
357357
final._flux_per_photon,

tests/jax/test_spergel_comp_galsim.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
"nu",
2323
"scale_radius",
2424
"maxk",
25-
pytest.param(
26-
"stepk",
27-
marks=pytest.mark.xfail(
28-
reason="GalSim has a bug in its stepk routine. See https://github.com/GalSim-developers/GalSim/issues/1324"
29-
),
30-
),
25+
"stepk",
3126
"half_light_radius",
3227
],
3328
)

0 commit comments

Comments
 (0)