Skip to content

Commit

Permalink
Move slow measurements from base config to imsim
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed May 19, 2022
1 parent 2707824 commit 4079204
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@
config.detection.isotropicGrow = True

# Activate calibration of measurements: required for aperture corrections
config.load(os.path.join(obsConfigDir, "cmodel.py"))
config.measurement.load(os.path.join(obsConfigDir, "apertures.py"))
config.measurement.load(os.path.join(obsConfigDir, "kron.py"))
config.measurement.load(os.path.join(obsConfigDir, "convolvedFluxes.py"))
config.measurement.load(os.path.join(obsConfigDir, "gaap.py"))
config.measurement.load(os.path.join(obsConfigDir, "hsm.py"))
if "ext_shapeHSM_HsmShapeRegauss" in config.measurement.plugins:
# no deblending has been done
config.measurement.plugins["ext_shapeHSM_HsmShapeRegauss"].deblendNChild = ""
Expand Down
9 changes: 9 additions & 0 deletions config/imsim/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@

obsConfigDir = os.path.join(os.path.dirname(__file__))

config.load(os.path.join(obsConfigDir, "..", "cmodel.py"))
config.measurement.load(os.path.join(obsConfigDir, "..", "kron.py"))
config.measurement.load(os.path.join(obsConfigDir, "..", "convolvedFluxes.py"))
config.measurement.load(os.path.join(obsConfigDir, "..", "gaap.py"))
config.measurement.load(os.path.join(obsConfigDir, "..", "hsm.py"))
if "ext_shapeHSM_HsmShapeRegauss" in config.measurement.plugins:
# no deblending has been done
config.measurement.plugins["ext_shapeHSM_HsmShapeRegauss"].deblendNChild = ""

# Reduce Chebyshev polynomial order for background fitting (DM-30820)
config.background.approxOrderX = 1
config.detection.background.approxOrderX = 1
Expand Down

0 comments on commit 4079204

Please sign in to comment.