Coverage for tests/config/config-gen3.py: 100%
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# Config for gen3 tests, which cannot use astrometrySourceSelector, and which
2# do source selection on Parquet tables, which have different field names.
4# TODO DM-29008: move these configs into the jointcal defaults before gen2 removal.
5# make science selector look like astrometry selector (see note in tests/config/config.py)
6config.sourceSelector['science'].flags.bad = ['pixelFlags_edge',
7 'pixelFlags_saturated',
8 'pixelFlags_interpolatedCenter',
9 'pixelFlags_interpolated',
10 'pixelFlags_crCenter',
11 'pixelFlags_bad',
12 'hsmPsfMoments_flag',
13 'apFlux_12_0_flag',
14 ]
15config.sourceSelector['science'].doUnresolved = False
16config.sourceSelector['science'].signalToNoise.fluxField = 'apFlux_12_0_instFlux'
17config.sourceSelector['science'].signalToNoise.errField = 'apFlux_12_0_instFluxErr'
18config.sourceSelector['science'].isolated.parentName = 'parentSourceId'
19config.sourceSelector['science'].isolated.nChildName = 'deblend_nChild'
20config.sourceFluxType = 'apFlux_12_0'
22# TODO DM-27843: workaround for gen3 not supporting anyFilterMapsToThis
23config.astrometryRefObjLoader.filterMap = {'g': 'phot_g_mean',
24 'r': 'phot_g_mean',
25 'i': 'phot_g_mean',
26 'z': 'phot_g_mean',
27 'y': 'phot_g_mean',
28 'N921': 'phot_g_mean',
29 }
30config.astrometryRefObjLoader.anyFilterMapsToThis = None