Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extend = "../pyproject.toml"
# Use this line when config moves inside python tree.
# extend = "../../../../../../pyproject.toml"
# Ignore undefined "config", as config files are loaded with `eval`.
builtins = ["config"]
6 changes: 2 additions & 4 deletions config/bias.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

config.load(os.path.join(os.path.dirname(__file__), "lsstCamCommon.py"))
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py"))
config.load("lsstCamCommon.py")
config.isr.load("isr.py")
9 changes: 3 additions & 6 deletions config/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@
"""
LSST Cam-specific overrides for CalibrateTask
"""
import os.path

obsConfigDir = os.path.dirname(__file__)

# TODO: Turn color terms back on when they are available
config.photoCal.applyColorTerms = False
config.photoCal.photoCatName = "the_monster_20250219"

# Activate calibration of measurements: required for aperture corrections
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, "hsm.py"))
config.measurement.load("apertures.py")
config.measurement.load("kron.py")
config.measurement.load("hsm.py")

config.measurement.plugins.names |= ["base_Jacobian", "base_FPPosition"]

Expand Down
5 changes: 1 addition & 4 deletions config/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@
"""
LSST Cam-specific overrides for CharacterizeImageTask
"""
import os.path

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

# PSF determination
config.measurePsf.reserve.fraction = 0.2

# Activate calibration of measurements: required for aperture corrections
config.measurement.load(os.path.join(obsConfigDir, "apertures.py"))
config.measurement.load("apertures.py")

config.measurement.plugins.names |= ["base_Jacobian", "base_FPPosition"]
config.measurement.plugins["base_Jacobian"].pixelScale = 0.2
5 changes: 1 addition & 4 deletions config/comCam/analysisToolsPhotometricCatalogMatch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False
5 changes: 1 addition & 4 deletions config/comCam/analysisToolsPhotometricCatalogMatchVisit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False
9 changes: 3 additions & 6 deletions config/comCam/calibrate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import os

obsConfigDir = os.path.join(os.path.dirname(__file__))
config.photoRefObjLoader.load(os.path.join(obsConfigDir, "filterMap.py"))
config.photoRefObjLoader.load("filterMap.py")
config.connections.astromRefCat = "the_monster_20250219"

# Loosen maxOffset to account for early pointing model inaccuracy.
Expand All @@ -17,10 +14,10 @@

# Overrides to improved astrometry matching.
config.astrometry.doFiducialZeroPointCull = True
config.astrometry.load(os.path.join(obsConfigDir, "fiducialZeroPoint.py"))
config.astrometry.load("fiducialZeroPoint.py")

# Loosened for early ComCam with large PSFs.
config.photoCal.match.sourceSelection.doUnresolved = False

# Exposure summary stats.
config.computeSummaryStats.load(os.path.join(obsConfigDir, "computeExposureSummaryStats.py"))
config.computeSummaryStats.load("computeExposureSummaryStats.py")
12 changes: 4 additions & 8 deletions config/comCam/calibrateImage.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import os

from lsst.meas.algorithms import ColorLimit # Configure the photometry to use the_monster.

# Configure the photometry to use atlas_refcat2.
config_dir = os.path.dirname(__file__)

config.connections.photometry_ref_cat = "the_monster_20250219"
config.connections.astrometry_ref_cat = "the_monster_20250219"

Expand All @@ -15,8 +11,8 @@
config.star_background.doApplyFlatBackgroundRatio = True
config.star_detection.doApplyFlatBackgroundRatio = True

config.astrometry.load(os.path.join(config_dir, "filterMap.py"))
config.photometry_ref_loader.load(os.path.join(config_dir, "filterMap.py"))
config.astrometry.load("filterMap.py")
config.photometry_ref_loader.load("filterMap.py")

config.photometry.match.referenceSelection.magLimit.fluxField = "monster_ComCam_r_flux"
colors = config.photometry.match.referenceSelection.colorLimits
Expand All @@ -30,7 +26,7 @@
config.photometry.applyColorTerms = False
config.photometry.photoCatName = "the_monster_20250219"

config.compute_summary_stats.load(os.path.join(config_dir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")

# Loosen maxOffset to account for early pointing model inaccuracy.
config.astrometry.matcher.maxOffsetPix=1500
Expand All @@ -45,7 +41,7 @@

# Overrides to improved astrometry matching.
config.astrometry.doFiducialZeroPointCull = True
config.astrometry.load(os.path.join(config_dir, "fiducialZeroPoint.py"))
config.astrometry.load("fiducialZeroPoint.py")

# Loosened for early ComCam with large PSFs.
config.photometry.match.sourceSelection.doUnresolved = False
Expand Down
9 changes: 3 additions & 6 deletions config/comCam/computeExposureSummaryStats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import os.path

config_dir = os.path.dirname(__file__)

config.load(os.path.join(config_dir, "fiducialPsfSigma.py"))
config.load(os.path.join(config_dir, "fiducialSkyBackground.py"))
config.load(os.path.join(config_dir, "fiducialZeroPoint.py"))
config.load("fiducialPsfSigma.py")
config.load("fiducialSkyBackground.py")
config.load("fiducialZeroPoint.py")
6 changes: 1 addition & 5 deletions config/comCam/fgcmBuildFromIsolatedStars.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

physical_to_band = {
"u_02": "u",
"g_01": "g",
Expand All @@ -17,10 +15,8 @@
config.minPerBand = 2
config.connections.ref_cat = "the_monster_20250219"

configDir = os.path.join(os.path.dirname(__file__))
config.physicalFilterMap = physical_to_band
obsConfigDir = os.path.join(os.path.dirname(__file__))
config.fgcmLoadReferenceCatalog.load(os.path.join(obsConfigDir, "filterMap.py"))
config.fgcmLoadReferenceCatalog.load("filterMap.py")
config.fgcmLoadReferenceCatalog.applyColorTerms = False
config.fgcmLoadReferenceCatalog.referenceSelector.doSignalToNoise = True
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.fluxField = "monster_ComCam_i_flux"
Expand Down
4 changes: 1 addition & 3 deletions config/comCam/finalize_characterization_detector.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import os.path

config.load(os.path.join(os.path.dirname(__file__), "finalize_characterization.py"))
config.load("finalize_characterization.py")
5 changes: 1 addition & 4 deletions config/comCam/reprocessVisitImage.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python
import os.path

ObsConfigDir = os.path.dirname(__file__)

config.compute_summary_stats.load(os.path.join(ObsConfigDir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")

config.do_apply_flat_background_ratio = True
5 changes: 1 addition & 4 deletions config/comCam/updateVisitSummary.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env python
import os.path

ObsConfigDir = os.path.dirname(__file__)

config.compute_summary_stats.load(os.path.join(ObsConfigDir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")
5 changes: 1 addition & 4 deletions config/comCamSim/analysisToolsPhotometricCatalogMatch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False

config.connections.refCatalog = "uw_stars_20240524"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False

config.connections.refCatalog = "uw_stars_20240524"
10 changes: 3 additions & 7 deletions config/comCamSim/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

configDir = os.path.dirname(__file__)

config.connections.astromRefCat = "uw_stars_20240524"
config.connections.photoRefCat = "uw_stars_20240524"
config.photoCal.photoCatName = "uw_stars_20240524"

config.astromRefObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.photoRefObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.astromRefObjLoader.load("filterMap.py")
config.photoRefObjLoader.load("filterMap.py")
config.astromRefObjLoader.anyFilterMapsToThis = None
config.photoRefObjLoader.anyFilterMapsToThis = None

Expand All @@ -52,4 +48,4 @@
config.photoCal.match.referenceSelection.magLimit.maximum = 22.0

# Exposure summary stats
config.computeSummaryStats.load(os.path.join(configDir, "computeExposureSummaryStats.py"))
config.computeSummaryStats.load("computeExposureSummaryStats.py")
9 changes: 3 additions & 6 deletions config/comCamSim/calibrateImage.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# ComCamSim-specialized configuration for CalibrateImageTask.
import os.path

configDir = os.path.dirname(__file__)

config.connections.astrometry_ref_cat = "uw_stars_20240524"
config.connections.photometry_ref_cat = "uw_stars_20240524"

config.astrometry_ref_loader.load(os.path.join(configDir, "filterMap.py"))
config.photometry_ref_loader.load(os.path.join(configDir, "filterMap.py"))
config.astrometry_ref_loader.load("filterMap.py")
config.photometry_ref_loader.load("filterMap.py")
config.astrometry_ref_loader.anyFilterMapsToThis = None
config.photometry_ref_loader.anyFilterMapsToThis = None

Expand All @@ -30,4 +27,4 @@
config.photometry.match.referenceSelection.magLimit.maximum = 22.0

# Exposure summary stats
config.compute_summary_stats.load(os.path.join(configDir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")
10 changes: 3 additions & 7 deletions config/comCamSim/computeExposureSummaryStats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import os.path

config_dir = os.path.dirname(__file__)

config.load(os.path.join(config_dir, "fiducialPsfSigma.py"))
config.load(os.path.join(config_dir, "fiducialSkyBackground.py"))
config.load(os.path.join(config_dir, "fiducialZeroPoint.py"))
config.load("fiducialPsfSigma.py")
config.load("fiducialSkyBackground.py")
config.load("fiducialZeroPoint.py")
3 changes: 0 additions & 3 deletions config/comCamSim/fgcmBuildFromIsolatedStars.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

physical_to_band = {
"g_01": "g",
"r_03": "r",
Expand All @@ -14,7 +12,6 @@
config.minPerBand = 2
config.connections.ref_cat = "uw_stars_20240524"

configDir = os.path.join(os.path.dirname(__file__))
config.physicalFilterMap = physical_to_band
config.fgcmLoadReferenceCatalog.filterMap = {
"g": "lsst_g",
Expand Down
6 changes: 1 addition & 5 deletions config/comCamSim/reprocessVisitImage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/usr/bin/env python
import os.path

ObsConfigDir = os.path.dirname(__file__)

config.compute_summary_stats.load(os.path.join(ObsConfigDir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")
6 changes: 1 addition & 5 deletions config/comCamSim/updateVisitSummary.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/usr/bin/env python
import os.path

ObsConfigDir = os.path.dirname(__file__)

config.compute_summary_stats.load(os.path.join(ObsConfigDir, "computeExposureSummaryStats.py"))
config.compute_summary_stats.load("computeExposureSummaryStats.py")
4 changes: 1 addition & 3 deletions config/compareWarpAssembleCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

# Load configs from base assembleCoadd
config.load(os.path.join(os.path.dirname(__file__), "assembleCoadd.py"))
config.load("assembleCoadd.py")

# 200 rows (since patch width is typically < 10k pixels
config.assembleStaticSkyModel.subregionSize = (10000, 200)
Expand Down
6 changes: 2 additions & 4 deletions config/dark.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

config.load(os.path.join(os.path.dirname(__file__), "lsstCamCommon.py"))
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py"))
config.load("lsstCamCommon.py")
config.isr.load("isr.py")

config.repair.cosmicray.nCrPixelMax = 100000
4 changes: 1 addition & 3 deletions config/findDefects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import os.path

config.load(os.path.join(os.path.dirname(__file__), "lsstCamCommon.py"))
config.load("lsstCamCommon.py")
config.ccdKey = "detector"
6 changes: 2 additions & 4 deletions config/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

config.load(os.path.join(os.path.dirname(__file__), "lsstCamCommon.py"))
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py"))
config.load("lsstCamCommon.py")
config.isr.load("isr.py")
4 changes: 1 addition & 3 deletions config/forcedPhotCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

config.measurement.load(os.path.join(os.path.dirname(__file__), "apertures.py"))
config.measurement.load("apertures.py")

# We only need the 12 pixel aperture for subsequent measurements.
config.measurement.plugins["base_CircularApertureFlux"].radii = [12.0]
12 changes: 5 additions & 7 deletions config/forcedPhotCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.

import os.path

config.measurement.load(os.path.join(os.path.dirname(__file__), "apertures.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "kron.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "convolvedFluxes.py"))
config.measurement.load(os.path.join(os.path.dirname(__file__), "gaap.py"))
config.load(os.path.join(os.path.dirname(__file__), "cmodel.py"))
config.measurement.load("apertures.py")
config.measurement.load("kron.py")
config.measurement.load("convolvedFluxes.py")
config.measurement.load("gaap.py")
config.load("cmodel.py")

config.measurement.slots.gaussianFlux = None

Expand Down
5 changes: 1 addition & 4 deletions config/hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@

# Enable HSM shapes (unsetup meas_extensions_shapeHSM to disable)
# 'config' is a SourceMeasurementConfig.
import os.path
from lsst.utils import getPackageDir

try:
config.load(os.path.join(getPackageDir("meas_extensions_shapeHSM"), "config", "enable.py"))
config.load("eups://meas_extensions_shapeHSM/config/enable.py")
config.plugins["ext_shapeHSM_HsmShapeRegauss"].deblendNChild = "deblend_nChild"
# Enable debiased moments
config.plugins.names |= ["ext_shapeHSM_HsmPsfMomentsDebiased"]
Expand Down
5 changes: 1 addition & 4 deletions config/imsim/analysisToolsPhotometricCatalogMatch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False
config.connections.refCatalog = "cal_ref_cat_2_2"
5 changes: 1 addition & 4 deletions config/imsim/analysisToolsPhotometricCatalogMatchVisit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import os.path

configDir = os.path.dirname(__file__)
config.referenceCatalogLoader.refObjLoader.load(os.path.join(configDir, "filterMap.py"))
config.referenceCatalogLoader.refObjLoader.load("filterMap.py")
config.referenceCatalogLoader.doApplyColorTerms = False
config.connections.refCatalog = "cal_ref_cat_2_2"
Loading