-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using __file__ to reference other configs.
- Loading branch information
Showing
68 changed files
with
99 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Config override for lsst.ap.pipe.ApPipeTask | ||
import os.path | ||
from lsst.utils import getPackageDir | ||
|
||
subaruConfigDir = os.path.join(getPackageDir('obs_subaru'), 'config') | ||
subaruConfigDir = os.path.dirname(__file__) | ||
|
||
config.ccdProcessor.load(os.path.join(subaruConfigDir, "processCcd.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.meas.algorithms import ColorLimit | ||
|
||
ObsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config") | ||
ObsConfigDir = os.path.dirname(__file__) | ||
|
||
charImFile = os.path.join(ObsConfigDir, "charImage.py") | ||
config.load(charImFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import os.path | ||
from lsst.utils import getPackageDir | ||
|
||
# Load configs from base assembleCoadd | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "assembleCoadd.py")) | ||
# Load configs from base assembleCoadd | ||
config.load(os.path.join(os.path.dirname(__file__), "assembleCoadd.py")) | ||
|
||
# 200 rows (since patch width is typically < 10k pixels | ||
config.assembleStaticSkyModel.subregionSize = (10000, 200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
"""Subaru-specific overrides for DeblendCoaddSourcesTask""" | ||
|
||
import os.path | ||
from lsst.utils import getPackageDir | ||
|
||
config.singleBandDeblend.load(os.path.join(getPackageDir("obs_subaru"), "config", "singleBandDeblend.py")) | ||
config.multiBandDeblend.load(os.path.join(getPackageDir("obs_subaru"), "config", "multiBandDeblend.py")) | ||
config.singleBandDeblend.load(os.path.join(os.path.dirname(__file__), "singleBandDeblend.py")) | ||
config.multiBandDeblend.load(os.path.join(os.path.dirname(__file__), "multiBandDeblend.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.measurement.load(os.path.join(getPackageDir("obs_subaru"), "config", "apertures.py")) | ||
config.measurement.load(os.path.join(getPackageDir("obs_subaru"), "config", "kron.py")) | ||
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.slots.gaussianFlux = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Config override for lsst.ap.pipe.ApPipeTask | ||
import os.path | ||
from lsst.utils import getPackageDir | ||
|
||
hscConfigDir = os.path.join(getPackageDir('obs_subaru'), 'config', 'hsc') | ||
hscConfigDir = os.path.dirname(__file__) | ||
|
||
config.ccdProcessor.load(os.path.join(hscConfigDir, "processCcd.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.isr.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "isr.py")) | ||
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py")) | ||
config.isr.doBrighterFatter = False | ||
config.isr.doStrayLight = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.meas.algorithms import ColorLimit | ||
|
||
ObsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config", "hsc") | ||
ObsConfigDir = os.path.join(os.path.dirname(__file__)) | ||
|
||
charImFile = os.path.join(ObsConfigDir, "charImage.py") | ||
config.load(charImFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.colorterms.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "colorterms.py")) | ||
config.refObjLoader.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "filterMap.py")) | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "srcSchemaMap.py")) | ||
config.colorterms.load(os.path.join(os.path.dirname(__file__), "colorterms.py")) | ||
config.refObjLoader.load(os.path.join(os.path.dirname(__file__), "filterMap.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "srcSchemaMap.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
# Load from sub-configurations | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
for sub, filename in (("makeCoaddTempExp", "makeCoaddTempExp"), | ||
("backgroundReference", "backgroundReference"), | ||
("assembleCoadd", "compareWarpAssembleCoadd"), | ||
("detectCoaddSources", "detectCoaddSources")): | ||
path = os.path.join(getPackageDir("obs_subaru"), "config", "hsc", filename + ".py") | ||
path = os.path.join(os.path.dirname(__file__), filename + ".py") | ||
if os.path.exists(path): | ||
getattr(config, sub).load(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "srcSchemaMap.py")) | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "extinctionCoeffs.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "srcSchemaMap.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "extinctionCoeffs.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.colorterms.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "colorterms.py")) | ||
config.refObjLoader.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "filterMap.py")) | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "srcSchemaMap.py")) | ||
config.colorterms.load(os.path.join(os.path.dirname(__file__), "colorterms.py")) | ||
config.refObjLoader.load(os.path.join(os.path.dirname(__file__), "filterMap.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "srcSchemaMap.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.refObjLoader.load(os.path.join(getPackageDir("obs_subaru"), "config", "filterMap.py")) | ||
config.refObjLoader.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "filterMap.py")) | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "srcSchemaMap.py")) | ||
config.refObjLoader.load(os.path.join(os.path.dirname(__file__), "..", "filterMap.py")) | ||
config.refObjLoader.load(os.path.join(os.path.dirname(__file__), "filterMap.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "srcSchemaMap.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import os.path | ||
from lsst.utils import getPackageDir | ||
|
||
# Load configs shared between assembleCoadd and makeCoaddTempExp | ||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "assembleCoadd.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "assembleCoadd.py")) | ||
|
||
config.assembleStaticSkyModel.doApplyExternalPhotoCalib = True | ||
config.assembleStaticSkyModel.doApplyExternalSkyWcs = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "srcSchemaMap.py")) | ||
config.load(os.path.join(os.path.dirname(__file__), "srcSchemaMap.py")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.isr.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "isr.py")) | ||
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py")) | ||
|
||
from lsst.obs.hsc.calibs import HscFlatCombineTask | ||
config.combination.retarget(HscFlatCombineTask) | ||
config.combination.vignette.load(os.path.join(getPackageDir("obs_subaru"), 'config', 'hsc', 'vignette.py')) | ||
config.combination.vignette.load(os.path.join(os.path.dirname(__file__), 'vignette.py')) | ||
|
||
config.isr.doBrighterFatter = False | ||
config.isr.doStrayLight = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
|
||
config.isr.load(os.path.join(getPackageDir("obs_subaru"), "config", "hsc", "isr.py")) | ||
config.isr.load(os.path.join(os.path.dirname(__file__), "isr.py")) | ||
|
||
config.isr.doBrighterFatter = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.