Skip to content

Commit 81296bb

Browse files
committed
Update tests for dyn_bgd_n_faint=2 default
1 parent 19d8dab commit 81296bb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

proseco/tests/test_catalog.py

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_get_aca_catalog_20603_with_supplement():
6666
kwargs = dict(
6767
obsid=20603,
6868
exclude_ids_acq=[40113544],
69+
dyn_bgd_n_faint=0,
6970
n_fid=2,
7071
n_guide=6,
7172
n_acq=7,
@@ -90,6 +91,7 @@ def test_get_aca_catalog_20603(proseco_agasc_1p7):
9091
aca = get_aca_catalog(
9192
20603,
9293
exclude_ids_acq=[40113544],
94+
dyn_bgd_n_faint=0,
9395
n_fid=2,
9496
n_guide=6,
9597
n_acq=7,

proseco/tests/test_guide.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def test_guides_include_close():
654654
# Force include the faint 4 stars that are also close together
655655
include_ids = [21, 22, 23, 24]
656656
cat2 = get_guide_catalog(
657-
**mod_std_info(n_guide=5), stars=stars, include_ids_guide=include_ids
657+
**mod_std_info(n_guide=5), stars=stars, include_ids_guide=include_ids,
658658
)
659659

660660
# Run the cluster checks and confirm all 3 fail
@@ -785,14 +785,15 @@ def test_guide_faint_mag_limit():
785785
mag=[7.0] * 4 + [GUIDE.ref_faint_mag - 0.001], n_stars=5, id=ids
786786
)
787787

788-
# Select stars at 0.1 degC colder than reference temperature, expect 5 stars selected
788+
# Select stars at 0.1 degC colder than reference temperature, use previous default of
789+
# dyn_bgd_n_faint=0 for this test, expect 5 stars selected
789790
guides = get_guide_catalog(
790-
**mod_std_info(t_ccd=GUIDE.ref_faint_mag_t_ccd - 0.1), stars=stars, dark=DARK40
791+
**mod_std_info(t_ccd=GUIDE.ref_faint_mag_t_ccd - 0.1, dyn_bgd_n_faint=0), stars=stars, dark=DARK40
791792
)
792793
assert np.all(guides["id"] == ids)
793794

794795
# Select stars at 0.1 degC warmer than reference temperature, expect 4 stars selected
795796
guides = get_guide_catalog(
796-
**mod_std_info(t_ccd=GUIDE.ref_faint_mag_t_ccd + 0.1), stars=stars, dark=DARK40
797+
**mod_std_info(t_ccd=GUIDE.ref_faint_mag_t_ccd + 0.1, dyn_bgd_n_faint=0), stars=stars, dark=DARK40,
797798
)
798799
assert np.all(guides["id"] == [1, 2, 3, 4])

0 commit comments

Comments
 (0)