From ef1dc2345ebd4756cf44eef437b3660b27ab7779 Mon Sep 17 00:00:00 2001 From: Jim Bosch Date: Mon, 11 May 2026 16:56:40 -0400 Subject: [PATCH] Allow config for RawIngestTask to be defaulted. --- python/lsst/obs/base/ingest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/lsst/obs/base/ingest.py b/python/lsst/obs/base/ingest.py index 9695b840..45d53032 100644 --- a/python/lsst/obs/base/ingest.py +++ b/python/lsst/obs/base/ingest.py @@ -340,7 +340,7 @@ def getDatasetType(self) -> DatasetType: def __init__( self, - config: RawIngestConfig, + config: RawIngestConfig | None = None, *, butler: Butler, on_success: Callable[[list[FileDataset]], Any] = _do_nothing, @@ -349,6 +349,8 @@ def __init__( on_exposure_record: Callable[[DimensionRecord], Any] = _do_nothing, **kwargs: Any, ): + if config is None: + config = RawIngestConfig() config.validate() # Not a CmdlineTask nor PipelineTask, so have to validate the config here. super().__init__(config, **kwargs) self.butler = butler