Skip to content

Commit

Permalink
Override anyFilterMapsToThis for simulated data.
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jan 20, 2022
1 parent e502525 commit 767e5ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
):
refObjLoader.load(os.path.join(obsConfigDir, 'filterMap.py'))
refObjLoader.ref_dataset_name = 'cal_ref_cat'
# Use the filterMap instead of the "any" filter.
refObjLoader.anyFilterMapsToThis = None

config.connections.astromRefCat = "cal_ref_cat"
config.connections.photoRefCat = "cal_ref_cat"
Expand Down
6 changes: 6 additions & 0 deletions config/imsim/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
config.astrometry.referenceSelector.unresolved.minimum = None
config.astrometry.referenceSelector.unresolved.maximum = 0.5

configDir = os.path.dirname(__file__)
config.astromRefObjLoader.load(os.path.join(configDir, "filterMap.py"))
# Use the filterMap instead of the "any" filter.
config.astromRefObjLoader.anyFilterMapsToThis = None
config.photoRefObjLoader.load(os.path.join(configDir, "filterMap.py"))

config.astrometry.doMagnitudeOutlierRejection = True
# Set threshold above which astrometry will be considered a failure (DM-32129)
config.astrometry.maxMeanDistanceArcsec = 0.05
Expand Down

0 comments on commit 767e5ec

Please sign in to comment.