From 9f2c0c08f4851b4615093e09ac42425de47b2d81 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Thu, 26 Oct 2023 15:33:21 -0700 Subject: [PATCH] Make dimension packer config optional The default config should work in most cases, so it doesn't need to be required. --- python/lsst/obs/lsst/_packer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lsst/obs/lsst/_packer.py b/python/lsst/obs/lsst/_packer.py index dc2e365ed..a67b2ed9a 100644 --- a/python/lsst/obs/lsst/_packer.py +++ b/python/lsst/obs/lsst/_packer.py @@ -164,7 +164,7 @@ class RubinDimensionPacker(DimensionPacker): data_id : `lsst.daf.butler.DataCoordinate` Data ID identifying at least the instrument dimension. Does not need to have dimension records attached. - config : `RubinDimensionPackerConfig` + config : `RubinDimensionPackerConfig`, optional Configuration for this dimension packer. is_exposure : `bool`, optional If `False`, construct a packer for visit+detector data IDs. If `True`, @@ -201,7 +201,7 @@ def __init__( self, data_id: DataCoordinate, *, - config: RubinDimensionPackerConfig | None, + config: RubinDimensionPackerConfig | None = None, is_exposure: bool | None = None, ): if config is None: