Skip to content

Commit 05b977e

Browse files
FedericoBerlfeinrmjarvis
authored andcommitted
Test flux is correct if jacobian has negative determinant
1 parent 6c61688 commit 05b977e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_chromatic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,6 +2844,11 @@ def test_chromatic_invariant():
28442844
str(chrom)
28452845
repr(chrom)
28462846

2847+
chrom = galsim.Transform(gsobj, jac = (0.5, 0.5, 1, -1), flux_ratio=bulge_SED)
2848+
expected_flux = flux*bulge_SED.calculateFlux(bandpass)
2849+
chromobj_flux = chrom.calculateFlux(bandpass)
2850+
np.testing.assert_allclose(expected_flux, chromobj_flux)
2851+
28472852
# ChromaticOpticalPSF
28482853
chrom_opt = galsim.ChromaticOpticalPSF(lam=500.0, diam=2.0, tip=2.0, tilt=3.0, defocus=0.2,
28492854
scale_unit='arcmin')

0 commit comments

Comments
 (0)