Skip to content

Commit

Permalink
Made zgrid extremely sparse for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Shirley committed May 10, 2024
1 parent 0804ed1 commit 2f489fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/data/lsst.para
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ GAL_LIB_OUT LSST_GAL_MAG # Output GALAXY LIBRARY (-> $ZPHOTWORK/lib_mag/*)
#------------------ MAG + Z_STEP + COSMO + EXTINCTION -----------------------------
MAGTYPE AB # Magnitude type (AB or VEGA)
ZGRID_TYPE 0 # Define the kind of redshift grid (0: linear ; 1: dz*(1+z))
Z_STEP 0.01,0.,7. # dz, zmin, zmax
Z_STEP 1.,0.,7. # dz, zmin, zmax
COSMOLOGY 70,0.3,0.7 # H0,om0,lbd0 (if lb0>0->om0+lbd0=1)
MOD_EXTINC 0,0 # model range for extinction
EXTINC_LAW SMC_prevot.dat,SB_calzetti.dat,SB_calzetti_bump1.dat,SB_calzetti_bump2.dat # ext. law (in $ZPHOTDIR/ext/*)
Expand Down
2 changes: 1 addition & 1 deletion tests/lephare/test_algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def test_informer_and_estimator(test_data_dir: str):

lephare_estimated = estimate_lephare.estimate(testdata_io)
assert np.isclose(
np.sum(lephare_estimated.data[0].pdf(np.linspace(0, 3, 300))), 99.66505408115891
np.sum(lephare_estimated.data[0].pdf(np.linspace(0, 3, 300))), 99.66482986408954
)

0 comments on commit 2f489fa

Please sign in to comment.