From 2305268071fbc003ab00c7f964c5c08285a2d496 Mon Sep 17 00:00:00 2001 From: Yusra AlSayyad Date: Fri, 27 Jan 2023 09:53:11 -0800 Subject: [PATCH] Make calibrateConfig argument optional --- .../analysis/tools/actions/plot/multiVisitCoveragePlot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/lsst/analysis/tools/actions/plot/multiVisitCoveragePlot.py b/python/lsst/analysis/tools/actions/plot/multiVisitCoveragePlot.py index 7c653704a..b6d63a16c 100644 --- a/python/lsst/analysis/tools/actions/plot/multiVisitCoveragePlot.py +++ b/python/lsst/analysis/tools/actions/plot/multiVisitCoveragePlot.py @@ -301,7 +301,10 @@ def makePlot( if len(notFoundKeys) > 0: raise RuntimeError(f"Requested column(s) {notFoundKeys} is(are) not in the data table.") - maxMeanDistanceArcsec = calibrateConfig.astrometry.maxMeanDistanceArcsec # type: ignore + if calibrateConfig is None: + maxMeanDistanceArcsec = 0.0 + else: + maxMeanDistanceArcsec = calibrateConfig.astrometry.maxMeanDistanceArcsec # type: ignore if makeWarpConfig is None: maxEllipResidual = 0.007