Skip to content

Commit

Permalink
Rename diaMetricsPlots
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Apr 2, 2024
1 parent 9d27563 commit b54de91
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions pipelines/apDetectorVisitQualityCore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,30 +79,30 @@ tasks:
class: lsst.analysis.tools.tasks.DiffimDetectorVisitPlotsAnalysisTask
config:
connections.outputName: diffimPlots
atools.diaMetricsPlots: DiffimMetricsHistPlot
atools.interpolatedDipoleDensity: DiffimMetricsInterpolatePlot
atools.diaFlagHistogram: DiffimSpatialMetricsHistPlot
atools.interpolatedDipoleDensity: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedDipoleDensity.metricName: dipole_density
atools.interpolatedDipoleDensity.produce.plot.zAxisLabel: Number/degree^2
atools.interpolatedSourceDensity: DiffimMetricsInterpolatePlot
atools.interpolatedSourceDensity: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedSourceDensity.metricName: source_density
atools.interpolatedSourceDensity.produce.plot.zAxisLabel: Number/degree^2
atools.interpolatedTemplateMedian: DiffimMetricsInterpolatePlot
atools.interpolatedTemplateMedian: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedTemplateMedian.metricName: template_value
atools.interpolatedTemplateMedian.produce.plot.zAxisLabel: nJy
atools.interpolatedScienceMedian: DiffimMetricsInterpolatePlot
atools.interpolatedScienceMedian: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedScienceMedian.metricName: science_value
atools.interpolatedScienceMedian.produce.plot.zAxisLabel: nJy
atools.interpolatedDiffimMedian: DiffimMetricsInterpolatePlot
atools.interpolatedDiffimMedian: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedDiffimMedian.metricName: diffim_value
atools.interpolatedDiffimMedian.produce.plot.zAxisLabel: nJy
atools.interpolatedSciencePsfSize: DiffimMetricsInterpolatePlot
atools.interpolatedSciencePsfSize: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedSciencePsfSize.metricName: science_psfSize
atools.interpolatedSciencePsfSize.produce.plot.zAxisLabel: pixels
atools.interpolatedTemplatePsfSize: DiffimMetricsInterpolatePlot
atools.interpolatedTemplatePsfSize: DiffimSpatialMetricsInterpolatePlot
atools.interpolatedTemplatePsfSize.metricName: template_psfSize
atools.interpolatedTemplatePsfSize.produce.plot.zAxisLabel: pixels
python: |
from lsst.analysis.tools.atools import DiffimMetricsHistPlot, DiffimMetricsInterpolatePlot
from lsst.analysis.tools.atools import DiffimSpatialMetricsHistPlot, DiffimSpatialMetricsInterpolatePlot
subsets:
promptQaMetrics:
subset:
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/analysis/tools/atools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from .cpVerifyQuantityProfile import *
from .deblenderMetric import *
from .deltaSkyCorr import *
from .diaMetricsPlots import *
from .diaSolarSystemObjectMetrics import *
from .diaSourceMetrics import *
from .diaSourceTableTractMetrics import *
from .diaSpatialMetricsPlots import *
from .diffimMetadataMetrics import *
from .diffMatched import *
from .fluxMetrics import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
__all__ = ("DiffimMetricsHistPlot", "DiffimMetricsInterpolatePlot")
__all__ = ("DiffimSpatialMetricsHistPlot", "DiffimSpatialMetricsInterpolatePlot")

from lsst.pex.config import Field

Expand All @@ -28,7 +28,7 @@
from ..interfaces import AnalysisTool


class DiffimMetricsHistPlot(AnalysisTool):
class DiffimSpatialMetricsHistPlot(AnalysisTool):
"""Create histograms of the fraction of pixels with certain mask planes
set.
"""
Expand Down Expand Up @@ -73,9 +73,9 @@ def setDefaults(self):
)


class DiffimMetricsInterpolatePlot(AnalysisTool):
"""Interpolate metric values evaluated at locations in a supplied catalog
and create low-resolution images of the result.
class DiffimSpatialMetricsInterpolatePlot(AnalysisTool):
"""Interpolate spatially-sampled metric values and create low-resolution
images of the result.
"""

metricName = Field[str](doc="Metric name to interpolate", optional=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DiffimDetectorVisitAnalysisPlotsConnections(
):
data = connectionTypes.Input(
doc="QA metrics evaluated in locations throughout the difference image.",
name="{fakesType}{coaddName}Diff_summaryMetrics",
name="{fakesType}{coaddName}Diff_spatiallySampledMetrics",
storageClass="ArrowAstropy",
dimensions=("instrument", "visit", "detector"),
deferLoad=True,
Expand Down

0 comments on commit b54de91

Please sign in to comment.